From f68aeb8df891f0f0223327be13c47db8f4c1cb0a 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