Skip to content

Commit

Permalink
Fix possible crashes with validation if type is not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
jurmous committed Apr 16, 2024
1 parent 1da24fb commit 15efdf6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ data class IncMapChange internal constructor(
try {
mapDefinition.valueDefinition.validateWithRef(null, value) {
@Suppress("UNCHECKED_CAST")
mapDefinition.anyValueRef(reference) as IsPropertyReferenceForValues<Any, *, *, *>
mapDefinition.anyValueRef(reference) as? IsPropertyReferenceForValues<Any, *, *, *>
}
} catch (e: ValidationException) {
addException(e)
Expand Down

0 comments on commit 15efdf6

Please sign in to comment.