java.lang.IllegalStateException: Can't access a row that hasn't been loaded, make sure the instance is loaded by calling RealmObject.isLoaded().

GitHub | chrisolsen | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    isLoaded() seems to be returning an incorrect value.

    GitHub | 7 months ago | chrisolsen
    java.lang.IllegalStateException: Can't access a row that hasn't been loaded, make sure the instance is loaded by calling RealmObject.isLoaded().

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Can't access a row that hasn't been loaded, make sure the instance is loaded by calling RealmObject.isLoaded().

      at io.realm.internal.Row$1.getString()
    2. io.realm.internal
      Row$1.getString
      1. io.realm.internal.Row$1.getString(Row.java:176)
      1 frame
    3. io.realm
      UserRealmProxy.realmGet$name
      1. io.realm.UserRealmProxy.realmGet$name(UserRealmProxy.java:60)
      1 frame
    4. com.example.chris
      ActivityMainBinding.executeBindings
      1. com.example.chris.test.UserData.getName(UserData.java:11)
      2. com.example.chris.test.databinding.ActivityMainBinding.executeBindings(ActivityMainBinding.java:96)
      2 frames
    5. android.databinding
      ViewDataBinding$7.doFrame
      1. android.databinding.ViewDataBinding.executePendingBindings(ViewDataBinding.java:355)
      2. android.databinding.ViewDataBinding$6.run(ViewDataBinding.java:172)
      3. android.databinding.ViewDataBinding$7.doFrame(ViewDataBinding.java:238)
      3 frames
    6. Android Platform
      ActivityThread.main
      1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
      2. android.view.Choreographer.doCallbacks(Choreographer.java:670)
      3. android.view.Choreographer.doFrame(Choreographer.java:603)
      4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
      5. android.os.Handler.handleCallback(Handler.java:739)
      6. android.os.Handler.dispatchMessage(Handler.java:95)
      7. android.os.Looper.loop(Looper.java:148)
      8. android.app.ActivityThread.main(ActivityThread.java:5417)
      8 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames