Skip to content

Commit

Permalink
fixed NPE on composed models datatype.
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMario committed Feb 6, 2019
1 parent 377174f commit 73076c5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2683,6 +2683,10 @@ public CodegenParameter fromParameter(Parameter param, Set<String> imports) {
name = getTypeDeclaration(name);
}
p.dataType = name;
} else {
if (sub instanceof ComposedModel) {
p.dataType = "object";
}
}
}
p.paramName = toParamName(bp.getName());
Expand Down

0 comments on commit 73076c5

Please sign in to comment.