Skip to content

Commit

Permalink
Added not null check in code generator. (#6079)
Browse files Browse the repository at this point in the history
* Added not null check in code generator.

* Replaced tabs with whitespaces.
  • Loading branch information
Dschinghis-Kahn authored and wing328 committed Jul 17, 2017
1 parent d24895f commit e8bdf71
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2578,7 +2578,9 @@ public CodegenParameter fromParameter(Parameter param, Set<String> imports) {
// recursively add import
CodegenProperty innerCp = cp;
while(innerCp != null) {
imports.add(innerCp.complexType);
if(innerCp.complexType != null) {
imports.add(innerCp.complexType);
}
innerCp = innerCp.items;
}

Expand Down

0 comments on commit e8bdf71

Please sign in to comment.