forked from loafle/openapi-generator-original
better null check to surpress sonarcloud warning (#9888)
This commit is contained in:
parent
d2e79be728
commit
a5c98dd416
@ -2834,7 +2834,7 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
"'{}' defines discriminator '{}', but the referenced AnyOf schema '{}' is missing {}",
|
"'{}' defines discriminator '{}', but the referenced AnyOf schema '{}' is missing {}",
|
||||||
composedSchemaName, discPropName, modelName, discPropName);
|
composedSchemaName, discPropName, modelName, discPropName);
|
||||||
}
|
}
|
||||||
if (cp.dataType == null) {
|
if (cp != null && cp.dataType == null) {
|
||||||
cp = thisCp;
|
cp = thisCp;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user