java.lang.RuntimeException: Unable to destroy activity {com.smzf100.saomatuan/cn.finalteam.galleryfinal.PhotoSelectActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.clear()' on a null object reference

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by gmfbilu
, 1 year ago
Unable to destroy activity {com.smzf100.saomatuan/cn.finalteam.galleryfinal.PhotoSelectActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.clear()' on a null object reference
via GitHub by ceeji
, 1 year ago
Unable to destroy activity {com.easylearn/cn.finalteam.galleryfinal.PhotoSelectActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.clear()' on a null object reference
via Appcelerator JIRA by john adamis, 1 year ago
Unable to destroy activity {com.myapp/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.OrientationEventListener.disable()' on a null object reference
via Appcelerator JIRA by john adamis, 1 year ago
Unable to destroy activity {com.myapp/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.OrientationEventListener.disable()' on a null object reference
via GitHub by banobi
, 1 year ago
Unable to destroy activity {pt.org.adventistas.infoUPASD/org.appcelerator.titanium.TiTranslucentActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.clear()' on a null object reference
, 2 years ago
Unable to destroy activity >{app.test.android.mobile/app.test.android.mobile.MainActivity.MainAppActivity}: >java.lang.NullPointerException: Attempt to invoke virtual method 'void >android.graphics.Bitmap.recycle()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.clear()' on a null object reference
at cn.finalteam.galleryfinal.PhotoSelectActivity.onDestroy(PhotoSelectActivity.java:591)
at android.app.Activity.performDestroy(Activity.java:6253)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1164)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3903)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3934)
at android.app.ActivityThread.access$1400(ActivityThread.java:158)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1496)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5506)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:952)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.