java.lang.NullPointerException

Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

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 web21088

  • via GitHub by JasonHezz
    , 8 months ago
    Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
  • Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
  • Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
  • Stack trace

    • java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference at android.os.Parcel.readStringList(Parcel.java:2109) at fr.free.nrw.commons.Media.<init>(Media.java:238) at fr.free.nrw.commons.contributions.Contribution.<init>(Contribution.java:76) at fr.free.nrw.commons.contributions.Contribution$1.createFromParcel(Contribution.java:25) at fr.free.nrw.commons.contributions.Contribution$1.createFromParcel(Contribution.java:23) at android.os.Parcel.readParcelable(Parcel.java:2367) at android.os.Parcel.readValue(Parcel.java:2264) at android.os.Parcel.readArrayMapInternal(Parcel.java:2614) at android.os.BaseBundle.unparcel(BaseBundle.java:221) at android.os.BaseBundle.getBoolean(BaseBundle.java:659) at android.app.Activity.restoreHasCurrentPermissionRequest(Activity.java:7126) at android.app.Activity.performCreate(Activity.java:6876) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3208) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3351) at android.app.ActivityThread.access$1100(ActivityThread.java:222) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1796) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7230) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

    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.