forked from loafle/openapi-generator-original
Fix NullPointerException if there are no other properties
Change-Id: I6711e96d4b119b2cf78860d4eb43fc178edae372
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user