fix deep search null error

This commit is contained in:
Alireza Ahmadi 2023-12-05 22:57:45 +01:00
parent 009287d693
commit 677f621c25

View file

@ -176,7 +176,7 @@ class ObjectUtil {
}
}
} else {
return obj.toString().toLowerCase().indexOf(key.toLowerCase()) >= 0;
return this.isEmpty(obj) ? false : obj.toString().toLowerCase().indexOf(key.toLowerCase()) >= 0;
}
return false;
}