forked from loafle/openapi-generator-original
Fix NPE in JavaClientCodegen when model has no properties of its own
A model that inherits from another model and does not add its own properties causes JavaClientCodegen to crash silently with an NPE. Fixes #1141
This commit is contained in:
@@ -1439,6 +1439,8 @@ public class DefaultCodegen {
|
||||
}
|
||||
} else {
|
||||
m.emptyVars = true;
|
||||
m.hasVars = false;
|
||||
m.hasEnums = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user