Closed clementetb closed 6 months ago
This is fixed in https://github.com/realm/realm-kotlin/tree/next-major as part of the Collections in mixed
-implmentation. Previous issue was https://github.com/realm/realm-kotlin/issues/1488. It required quite some changes throughout the operator-infrastructure so don't think it is worth fixing in isolation.
Fixed by #1716
Invoking
RealmSet<RealmObject>.contains
on a managed set passing an unmanaged Realm value would result in the following exception:IllegalStateException: Cannot modify managed objects outside of a write transaction
The exception is a bit odd, how come we modify objects during the contains?