java.lang.NullPointerException: Attempt to invoke virtual method 'void fr.free.nrw.commons.contributions.ContributionController.saveState(android.os.Bundle)' on a null object reference

GitHub | misaochan | 6 months ago
  1. 0

    NullPointerException: Attempt to invoke virtual method 'void fr.free.nrw.commons.contributions.ContributionController.saveState(android.os.Bundle)' on a null object reference

    GitHub | 6 months ago | misaochan
    java.lang.NullPointerException: Attempt to invoke virtual method 'void fr.free.nrw.commons.contributions.ContributionController.saveState(android.os.Bundle)' on a null object reference
  2. 0
    Use 'dialog' to access views from custom_layout layout.
  3. 0
    The resource was accessed after it was dismissed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Initialize the variable before calling a method on it.
  6. 0
    The parsed JSON does not contains the requested field.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void fr.free.nrw.commons.contributions.ContributionController.saveState(android.os.Bundle)' on a null object reference

      at fr.free.nrw.commons.contributions.ContributionsListFragment.onSaveInstanceState()
    2. fr.free.nrw
      ContributionsListFragment.onSaveInstanceState
      1. fr.free.nrw.commons.contributions.ContributionsListFragment.onSaveInstanceState(ContributionsListFragment.java:87)
      1 frame
    3. Android Support v4
      FragmentActivity.onSaveInstanceState
      1. android.support.v4.app.Fragment.performSaveInstanceState(Fragment.java:2124)
      2. android.support.v4.app.FragmentManagerImpl.saveFragmentBasicState(FragmentManager.java:1771)
      3. android.support.v4.app.FragmentManagerImpl.saveAllState(FragmentManager.java:1839)
      4. android.support.v4.app.FragmentController.saveAllState(FragmentController.java:134)
      5. android.support.v4.app.FragmentActivity.onSaveInstanceState(FragmentActivity.java:565)
      5 frames
    4. Android v7
      AppCompatActivity.onSaveInstanceState
      1. android.support.v7.app.AppCompatActivity.onSaveInstanceState(AppCompatActivity.java:502)
      1 frame
    5. fr.free.nrw
      ContributionsActivity.onSaveInstanceState
      1. fr.free.nrw.commons.auth.AuthenticatedActivity.onSaveInstanceState(AuthenticatedActivity.java:142)
      2. fr.free.nrw.commons.contributions.ContributionsActivity.onSaveInstanceState(ContributionsActivity.java:133)
      2 frames
    6. Android Platform
      ActivityThread.main
      1. android.app.Activity.performSaveInstanceState(Activity.java:1298)
      2. android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1288)
      3. android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:4064)
      4. android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3475)
      5. android.app.ActivityThread.handleStopActivity(ActivityThread.java:3531)
      6. android.app.ActivityThread.access$1100(ActivityThread.java:156)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380)
      8. android.os.Handler.dispatchMessage(Handler.java:102)
      9. android.os.Looper.loop(Looper.java:211)
      10. android.app.ActivityThread.main(ActivityThread.java:5389)
      10 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
      2 frames