Handle null values correctly

This commit is contained in:
Sven Slootweg 2024-01-13 18:31:00 +01:00
parent a94bb4a789
commit e1d256ae39

View file

@ -17,7 +17,7 @@ This is a generalized solution to the problem of modular plumbing, and should al
module.exports = function createVersionedSpecialMatcher({ markerProperty, versionProperty, friendlyName, expectedVersions }) {
return function isSpecial(value) {
if (value[markerProperty]) {
if (value != null && value[markerProperty]) {
if (expectedVersions.includes(value[versionProperty])) {
return true;
} else {