added null check for item refs

This commit is contained in:
Tony Tam 2012-08-28 15:53:12 -07:00
parent 6df5008310
commit 9227d7b046

View File

@ -135,10 +135,12 @@ object CoreUtils {
model._2.properties.foreach(prop => {
val subObject = prop._2
if (containers.contains(subObject.getType)) {
if (subObject.items.ref != null)
subNames += subObject.items.ref
else
subNames += subObject.items.getType
if (subObject.items != null) {
if (subObject.items.ref != null)
subNames += subObject.items.ref
else
subNames += subObject.items.getType
}
} else subNames += subObject.getType
})
})