reference.get() must not be null

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web18169

  • reference.get() must not be null
  • via GitHub by LissF
    , 11 months ago
    reference.get() must not be null
  • Stack trace

    • java.lang.IllegalStateException: reference.get() must not be null at com.github.nitrico.lastadapter.WeakReferenceOnListChangedCallback.getAdapter(WeakReferenceOnListChangedCallback.kt:30) at com.github.nitrico.lastadapter.WeakReferenceOnListChangedCallback.onItemRangeRemoved(WeakReferenceOnListChangedCallback.kt:44) at android.databinding.ListChangeRegistry$1.onNotifyCallback( at android.databinding.ListChangeRegistry$1.onNotifyCallback( at android.databinding.CallbackRegistry.notifyCallbacks( at android.databinding.CallbackRegistry.notifyFirst64( at android.databinding.CallbackRegistry.notifyRemainder( at android.databinding.CallbackRegistry.notifyRecurse( at android.databinding.CallbackRegistry.notifyCallbacks( at android.databinding.ListChangeRegistry.notifyCallbacks( at android.databinding.ListChangeRegistry.notifyRemoved( at android.databinding.ObservableArrayList.notifyRemove( at android.databinding.ObservableArrayList.clear( at my.package.view.MyFragment.onActivityCreated( at at at at at at at at at at at at$ViewPagerOnTabSelectedListener.onTabSelected( at at at at$ at$TabView.performClick( at android.view.View$ at android.os.Handler.handleCallback( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke( at$ at at

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.