Fix NullPointerException if there are no other properties

Change-Id: I6711e96d4b119b2cf78860d4eb43fc178edae372
This commit is contained in:
Thomas Hoffmann 2016-09-16 12:36:59 +02:00
parent 1e4f30eb16
commit 61bd023e3d

View File

@ -182,8 +182,10 @@ public class InlineModelResolver {
}
} else if (model instanceof ComposedModel) {
ComposedModel m = (ComposedModel) model;
Map<String, Property> properties = m.getChild().getProperties();
flattenProperties(properties, modelName);
if (m.getChild() != null) {
Map<String, Property> properties = m.getChild().getProperties();
flattenProperties(properties, modelName);
}
}
}
}