This affects the other merge. I just want to check if we actually test this logic anywhere. The tests pass so I don't think we do.
I think the problem is here that in media_library_storage_prop_shape_alter() we set
src to use ReferenceFieldPropExpression which because of the code above it does not error out when no image is found. But then other sub properties like alt are not allowed to be null so then throw the OutOfRangeException below this.
This affects the other merge. I just want to check if we actually test this logic anywhere. The tests pass so I don't think we do.
I think the problem is here that in
media_library_storage_prop_shape_alter()
we setsrc
to useReferenceFieldPropExpression
which because of the code above it does not error out when no image is found. But then other sub properties like alt are not allowed to be null so then throw theOutOfRangeException
below this.