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
commitf68aeb8df891f0f0223327be13c47db8f4c1cb0a (patch)
tree3afec216f74e3fa48387b6d67484369f01b2802f
parentLog variables, not domain objects (might not support operator<<) (diff)
downloadproject2-f68aeb8df891f0f0223327be13c47db8f4c1cb0a.tar.bz2
project2-f68aeb8df891f0f0223327be13c47db8f4c1cb0a.tar.xz
project2-f68aeb8df891f0f0223327be13c47db8f4c1cb0a.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;