java.lang.IllegalStateException: reference.get() must not be null

GitHub | LissF | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    IllegalStateException: reference.get() must not be null

    GitHub | 9 months ago | LissF
    java.lang.IllegalStateException: reference.get() must not be null

    Root Cause Analysis

    1. java.lang.IllegalStateException

      reference.get() must not be null

      at com.github.nitrico.lastadapter.WeakReferenceOnListChangedCallback.getAdapter()
    2. com.github.nitrico
      WeakReferenceOnListChangedCallback.onItemRangeInserted
      1. com.github.nitrico.lastadapter.WeakReferenceOnListChangedCallback.getAdapter(WeakReferenceOnListChangedCallback.kt:30)
      2. com.github.nitrico.lastadapter.WeakReferenceOnListChangedCallback.onItemRangeInserted(WeakReferenceOnListChangedCallback.kt:41)
      2 frames
    3. android.databinding
      ObservableArrayList.addAll
      1. android.databinding.ListChangeRegistry$1.onNotifyCallback(ListChangeRegistry.java:47)
      2. android.databinding.ListChangeRegistry$1.onNotifyCallback(ListChangeRegistry.java:38)
      3. android.databinding.CallbackRegistry.notifyCallbacks(CallbackRegistry.java:201)
      4. android.databinding.CallbackRegistry.notifyFirst64(CallbackRegistry.java:122)
      5. android.databinding.CallbackRegistry.notifyRemainder(CallbackRegistry.java:169)
      6. android.databinding.CallbackRegistry.notifyRecurse(CallbackRegistry.java:145)
      7. android.databinding.CallbackRegistry.notifyCallbacks(CallbackRegistry.java:91)
      8. android.databinding.ListChangeRegistry.notifyCallbacks(ListChangeRegistry.java:135)
      9. android.databinding.ListChangeRegistry.notifyInserted(ListChangeRegistry.java:93)
      10. android.databinding.ObservableArrayList.notifyAdd(ObservableArrayList.java:118)
      11. android.databinding.ObservableArrayList.addAll(ObservableArrayList.java:60)
      11 frames