java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.wordpress.android.fluxc.model.SiteModel.isAdmin()' on a null object reference

GitHub | aforcier | 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 4455#241224263

    GitHub | 6 months ago | aforcier
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.wordpress.android.fluxc.model.SiteModel.isAdmin()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'boolean org.wordpress.android.fluxc.model.SiteModel.isAdmin()' on a null object reference

      at org.wordpress.android.ui.reader.actions.ReaderPostActions.bumpPageViewForPost()
    2. org.wordpress.android
      ReaderPostPagerActivity$2.onPageSelected
      1. org.wordpress.android.ui.reader.actions.ReaderPostActions.bumpPageViewForPost(ReaderPostActions.java:285)
      2. org.wordpress.android.ui.reader.actions.ReaderPostActions.bumpPageViewForPost(ReaderPostActions.java:276)
      3. org.wordpress.android.ui.reader.ReaderPostPagerActivity.trackPostAtPositionIfNeeded(ReaderPostPagerActivity.java:261)
      4. org.wordpress.android.ui.reader.ReaderPostPagerActivity.access$000(ReaderPostPagerActivity.java:48)
      5. org.wordpress.android.ui.reader.ReaderPostPagerActivity$2.onPageSelected(ReaderPostPagerActivity.java:135)
      5 frames
    3. Android Support v4
      ViewPager.setCurrentItem
      1. android.support.v4.view.ViewPager.dispatchOnPageSelected(ViewPager.java:1933)
      2. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:664)
      3. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:630)
      4. android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:611)
      4 frames
    4. org.wordpress.android
      ReaderPostPagerActivity$3$1.run
      1. org.wordpress.android.ui.reader.ReaderPostPagerActivity$3$1.run(ReaderPostPagerActivity.java:308)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:148)
      4. android.app.ActivityThread.main(ActivityThread.java:5422)
      4 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. 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