Open ffdez opened 1 year ago
var optionalCars: RealmList<CarRm>? = realmListOf(),
This is not allowed, lists are not optional.
If you should change it to var optionalCars: RealmList<CarRm> = realmListOf()
it should work.
That said, I am a bit surprised we didn't catch this at compile time, which we should.
I am getting the same error, and the documentation didn't clarify this .
That said, I am a bit surprised we didn't catch this at compile time, which we should.
any updates regarding this compile time check?
How frequently does the bug occur?
Always
Description
With this Realm entities:
When I try to save a null list, it crash:
Moreover, this error isn't controlled by Realm, because Transaction keeps running. When this error ocurrs, If I try to perform any other operation, it throws a IllegalStateException.
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
1.10.0 and 1.11.1
What Atlas App Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Android 34
Build environment
Android Studio version: Giraffe | 2022.3.1 Patch Android Build Tools version: 8.1.2 Gradle version: 8.3