From 2b035c1e4ebc440d0ab83d95963b4b4d25fec4c4 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 1 Dec 2014 14:30:27 +0000 Subject: Add null check when iterating model parts --- project2/ice/iceRows.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project2/ice/iceRows.cpp b/project2/ice/iceRows.cpp index be079dd..1f391be 100644 --- a/project2/ice/iceRows.cpp +++ b/project2/ice/iceRows.cpp @@ -49,7 +49,9 @@ class IceRowState : public RowState { void AssignFieldValue(FieldValues::iterator & field, ModelPartPtr domp) { - domp->GetValue(new Assign(*field++)); + if (domp) { + domp->GetValue(new Assign(*field++)); + } } Columns columns; -- cgit v1.2.3