forked from loafle/openapi-generator-original
Added not null check in code generator. (#6079)
* Added not null check in code generator. * Replaced tabs with whitespaces.
This commit is contained in:
parent
d24895f4bc
commit
e8bdf71ffc
@ -2578,7 +2578,9 @@ public class DefaultCodegen {
|
|||||||
// recursively add import
|
// recursively add import
|
||||||
CodegenProperty innerCp = cp;
|
CodegenProperty innerCp = cp;
|
||||||
while(innerCp != null) {
|
while(innerCp != null) {
|
||||||
|
if(innerCp.complexType != null) {
|
||||||
imports.add(innerCp.complexType);
|
imports.add(innerCp.complexType);
|
||||||
|
}
|
||||||
innerCp = innerCp.items;
|
innerCp = innerCp.items;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user