better null check in isExtensionParent (#15807)

This commit is contained in:
William Cheng
2023-06-11 16:34:59 +08:00
committed by GitHub
parent 6788f43af0
commit 5b0c021f26

View File

@@ -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;
}