Added not null check in code generator. (#6079)

* Added not null check in code generator.

* Replaced tabs with whitespaces.
This commit is contained in:
Matthias Walthart 2017-07-17 09:10:43 +02:00 committed by wing328
parent d24895f4bc
commit e8bdf71ffc

View File

@ -2578,7 +2578,9 @@ public class DefaultCodegen {
// recursively add import
CodegenProperty innerCp = cp;
while(innerCp != null) {
imports.add(innerCp.complexType);
if(innerCp.complexType != null) {
imports.add(innerCp.complexType);
}
innerCp = innerCp.items;
}