mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
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
|
||||
CodegenProperty innerCp = cp;
|
||||
while(innerCp != null) {
|
||||
imports.add(innerCp.complexType);
|
||||
if(innerCp.complexType != null) {
|
||||
imports.add(innerCp.complexType);
|
||||
}
|
||||
innerCp = innerCp.items;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user