summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <randomdan@akira.random.lan>2014-12-01 14:30:27 +0000
committerDan Goodliffe <randomdan@akira.random.lan>2014-12-01 14:30:27 +0000
commit2b035c1e4ebc440d0ab83d95963b4b4d25fec4c4 (patch)
tree3afec216f74e3fa48387b6d67484369f01b2802f
parentLog variables, not domain objects (might not support operator<<) (diff)
downloadproject2-2b035c1e4ebc440d0ab83d95963b4b4d25fec4c4.tar.bz2
project2-2b035c1e4ebc440d0ab83d95963b4b4d25fec4c4.tar.xz
project2-2b035c1e4ebc440d0ab83d95963b4b4d25fec4c4.zip
Add null check when iterating model parts
-rw-r--r--project2/ice/iceRows.cpp4
1 files changed, 3 insertions, 1 deletions
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;