java.lang.RuntimeException: Unable to resume activity {org.kiwix.kiwixmobile/org.kiwix.kiwixmobile.KiwixMobileActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { (has extras) }} to activity {org.kiwix.kiwixmobile/org.kiwix.kiwixmobile.KiwixMobileActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'android.view.MenuItem android.view.Menu.findItem(int)' on a null object reference

GitHub | kelson42 | 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

    GitHub comment 273#238983900

    GitHub | 7 months ago | kelson42
    java.lang.RuntimeException: Unable to resume activity {org.kiwix.kiwixmobile/org.kiwix.kiwixmobile.KiwixMobileActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { (has extras) }} to activity {org.kiwix.kiwixmobile/org.kiwix.kiwixmobile.KiwixMobileActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'android.view.MenuItem android.view.Menu.findItem(int)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke interface method 'android.view.MenuItem android.view.Menu.findItem(int)' on a null object reference

      at org.kiwix.kiwixmobile.KiwixMobileActivity.refreshBookmarkSymbol()
    2. org.kiwix.kiwixmobile
      KiwixMobileActivity.onActivityResult
      1. org.kiwix.kiwixmobile.KiwixMobileActivity.refreshBookmarkSymbol(KiwixMobileActivity.java:1410)
      2. org.kiwix.kiwixmobile.KiwixMobileActivity.onActivityResult(KiwixMobileActivity.java:1367)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.dispatchActivityResult(Activity.java:6632)
      2. android.app.ActivityThread.deliverResults(ActivityThread.java:4169)
      3. android.app.ActivityThread.performResumeActivity(ActivityThread.java:3495)
      4. android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3540)
      5. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2860)
      6. android.app.ActivityThread.access$900(ActivityThread.java:181)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1474)
      8. android.os.Handler.dispatchMessage(Handler.java:102)
      9. android.os.Looper.loop(Looper.java:145)
      10. android.app.ActivityThread.main(ActivityThread.java:6117)
      10 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
      2 frames