forked from loafle/openapi-generator-original
added null check
This commit is contained in:
parent
45d5e480c0
commit
3bf45de1f7
@ -420,6 +420,10 @@ public class DefaultCodegen {
|
||||
}
|
||||
|
||||
public CodegenProperty fromProperty(String name, Property p) {
|
||||
if(p == null) {
|
||||
System.out.println("unexpected missing property for name " + null);
|
||||
return null;
|
||||
}
|
||||
CodegenProperty property = CodegenModelFactory.newInstance(CodegenModelType.PROPERTY);
|
||||
|
||||
property.name = toVarName(name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user