diff --git a/core/src/commonMain/kotlin/maryk/core/query/changes/IncMapChange.kt b/core/src/commonMain/kotlin/maryk/core/query/changes/IncMapChange.kt index d755ea59..85e06091 100644 --- a/core/src/commonMain/kotlin/maryk/core/query/changes/IncMapChange.kt +++ b/core/src/commonMain/kotlin/maryk/core/query/changes/IncMapChange.kt @@ -42,7 +42,7 @@ data class IncMapChange internal constructor( try { mapDefinition.valueDefinition.validateWithRef(null, value) { @Suppress("UNCHECKED_CAST") - mapDefinition.anyValueRef(reference) as IsPropertyReferenceForValues + mapDefinition.anyValueRef(reference) as? IsPropertyReferenceForValues } } catch (e: ValidationException) { addException(e)