forked from loafle/openapi-generator-original
better null check in isExtensionParent (#15807)
This commit is contained in:
@@ -1449,7 +1449,7 @@ public class ModelUtils {
|
||||
* @return boolean
|
||||
*/
|
||||
public static boolean isExtensionParent(Schema schema) {
|
||||
if (schema.getExtensions() == null) {
|
||||
if (schema == null || schema.getExtensions() == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user