Better support for null values in arrays (#2777)
* Adds reproduction for #2752 * Make sure we support null values in arrays of pointers for inclusion
This commit is contained in:
@@ -555,7 +555,7 @@ function findPointers(object, path) {
|
||||
return answer;
|
||||
}
|
||||
|
||||
if (typeof object !== 'object') {
|
||||
if (typeof object !== 'object' || !object) {
|
||||
return [];
|
||||
}
|
||||
|
||||
@@ -585,7 +585,7 @@ function replacePointers(object, path, replace) {
|
||||
.filter((obj) => typeof obj !== 'undefined');
|
||||
}
|
||||
|
||||
if (typeof object !== 'object') {
|
||||
if (typeof object !== 'object' || !object) {
|
||||
return object;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user