Doesn't execute all paths correctly

This commit is contained in:
Adam
2015-02-08 16:35:58 -05:00
parent d00e5b03e1
commit 4dc6bfc949
22 changed files with 160 additions and 42 deletions

View File

@@ -27,7 +27,7 @@ public class ObjectInstance extends ObjectInstanceBase
Attributes attributes = field.getAttributes();
ConstantValue cv = (ConstantValue) attributes.findType(AttributeType.CONSTANT_VALUE);
FieldInstance fi = new FieldInstance(this, field, cv.getValue().getObject());
FieldInstance fi = new FieldInstance(this, field, cv != null ? cv.getValue().getObject() : null);
this.fields.add(fi);
}
}