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

GitHub | LissF | 6 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

    GitHub comment 5#240219849

    GitHub | 6 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.onItemRangeRemoved
      1. com.github.nitrico.lastadapter.WeakReferenceOnListChangedCallback.getAdapter(WeakReferenceOnListChangedCallback.kt:30)
      2. com.github.nitrico.lastadapter.WeakReferenceOnListChangedCallback.onItemRangeRemoved(WeakReferenceOnListChangedCallback.kt:44)
      2 frames
    3. android.databinding
      ObservableArrayList.clear
      1. android.databinding.ListChangeRegistry$1.onNotifyCallback(ListChangeRegistry.java:54)
      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.notifyRemoved(ListChangeRegistry.java:118)
      10. android.databinding.ObservableArrayList.notifyRemove(ObservableArrayList.java:124)
      11. android.databinding.ObservableArrayList.clear(ObservableArrayList.java:79)
      11 frames
    4. my.package.view
      MyFragment.onActivityCreated
      1. my.package.view.MyFragment.onActivityCreated(MyFragment.java:90)
      1 frame
    5. Android Support v4
      ViewPager.setCurrentItem
      1. android.support.v4.app.Fragment.performActivityCreated(Fragment.java:2083)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1129)
      3. android.support.v4.app.FragmentManagerImpl.attachFragment(FragmentManager.java:1464)
      4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:748)
      5. android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:1632)
      6. android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:637)
      7. android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:143)
      8. android.support.v4.view.ViewPager.populate(ViewPager.java:1237)
      9. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:668)
      10. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:630)
      11. android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:611)
      11 frames
    6. android.support.design
      TabLayout$TabView.performClick
      1. android.support.design.widget.TabLayout$ViewPagerOnTabSelectedListener.onTabSelected(TabLayout.java:2156)
      2. android.support.design.widget.TabLayout.dispatchTabSelected(TabLayout.java:1138)
      3. android.support.design.widget.TabLayout.selectTab(TabLayout.java:1132)
      4. android.support.design.widget.TabLayout.selectTab(TabLayout.java:1105)
      5. android.support.design.widget.TabLayout$Tab.select(TabLayout.java:1396)
      6. android.support.design.widget.TabLayout$TabView.performClick(TabLayout.java:1501)
      6 frames
    7. Android Platform
      ActivityThread.main
      1. android.view.View$PerformClick.run(View.java:19881)
      2. android.os.Handler.handleCallback(Handler.java:739)
      3. android.os.Handler.dispatchMessage(Handler.java:95)
      4. android.os.Looper.loop(Looper.java:135)
      5. android.app.ActivityThread.main(ActivityThread.java:5294)
      5 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
      2 frames
    10. XposedBridge
      XposedBridge.main
      1. de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
      1 frame