mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-14 00:21:19 +00:00
fixed NPE for objc client
This commit is contained in:
@@ -815,7 +815,8 @@ public class DefaultCodegen {
|
||||
if (property.items.isEnum) {
|
||||
property.datatypeWithEnum = property.datatypeWithEnum.replace(property.items.baseType,
|
||||
property.items.datatypeWithEnum);
|
||||
property.defaultValue = property.defaultValue.replace(property.items.baseType, property.items.datatypeWithEnum);
|
||||
if(property.defaultValue != null)
|
||||
property.defaultValue = property.defaultValue.replace(property.items.baseType, property.items.datatypeWithEnum);
|
||||
}
|
||||
}
|
||||
} else if (p instanceof MapProperty) {
|
||||
|
||||
Reference in New Issue
Block a user