diff --git a/swagger2puml-core/src/main/java/com/kicksolutions/swagger/plantuml/PlantUMLCodegen.java b/swagger2puml-core/src/main/java/com/kicksolutions/swagger/plantuml/PlantUMLCodegen.java index 1164131..57753bc 100644 --- a/swagger2puml-core/src/main/java/com/kicksolutions/swagger/plantuml/PlantUMLCodegen.java +++ b/swagger2puml-core/src/main/java/com/kicksolutions/swagger/plantuml/PlantUMLCodegen.java @@ -733,7 +733,7 @@ private List getClassMembers(ComposedModel composedModel, Map childProperties = new HashMap(); - if (null != composedModel.getChild()) { + if (null != composedModel.getChild() && null != composedModel.getChild().getProperties()) { childProperties = composedModel.getChild().getProperties(); } @@ -999,4 +999,4 @@ private String toTitleCase(String input) { return titleCase.toString(); } -} \ No newline at end of file +}