Closed In3luki closed 2 weeks ago
This is a regression from v11.
const object = { property: { inner: "value", } } const object2 = { property: null, } // v11 console.log(foundry.utils.getProperty(object, "property.inner")); // value console.log(foundry.utils.getProperty(object2, "property.inner")); // undefined // v12 console.log(foundry.utils.getProperty(object, "property.inner")); // value console.log(foundry.utils.getProperty(object2, "property.inner")); // TypeError: Cannot use 'in' operator to search for 'inner' in null
Version 12 Build 320
No response
Apparently foundry.utils.hasProperty has the same problem.
foundry.utils.hasProperty
Related to #7813
What happened?
This is a regression from v11.
What ways of accessing Foundry can you encounter this issue in?
Reproduction Steps
What core version are you reporting this for?
Version 12 Build 320
Relevant log output
No response
Bug Checklist