java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity}: java.lang.NullPointerException: Attempt to get length of null array

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 Stack Overflow by Angelo Charl
, 1 year ago
Unable to start activity ComponentInfo{com.google.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity}: java.lang.NullPointerException: Attempt to get length of null array
via Stack Overflow by Federico Taschin
, 3 months ago
Unable to start activity ComponentInfo{com.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity}: java.lang.NullPointerException: Attempt to get length of null array
via GitHub by allanman
, 1 year ago
Unable to start activity ComponentInfo{com.seafile.seadroid2/com.seafile.seadroid2.ui.activity.BrowserActivity}: java.lang.NullPointerException: Attempt to get length of null array
via Stack Overflow by Ripudaman
, 9 months ago
Unable to start activity ComponentInfo{com.daman.mediaplayer/com.daman.mediaplayer.MainActivity}: java.lang.NullPointerException: Attempt to get length of null array
via GitHub by galadril
, 1 year ago
Unable to start activity ComponentInfo{nl.hnogames.domoticz.premium/nl.hnogames.domoticz.Service.NFCServiceActivity}: java.lang.NullPointerException: Attempt to get length of null array
via Stack Overflow by Malini Ramakrishnan
, 10 months ago
Unable to start activity ComponentInfo{com.example.maliniramki.doodle/com.example.maliniramki.doodle.ConnectWithUserActivity}: java.lang.NullPointerException: Attempt to get length of null array
java.lang.NullPointerException: Attempt to get length of null array
at com.android.packageinstaller.permission.ui.GrantPermissionsActivity.computePermissionGrantState(GrantPermissionsActivity.java:312)
at com.android.packageinstaller.permission.ui.GrantPermissionsActivity.updateDefaultResults(GrantPermissionsActivity.java:362)
at com.android.packageinstaller.permission.ui.GrantPermissionsActivity.onCreate(GrantPermissionsActivity.java:105)
at android.app.Activity.performCreate(Activity.java:6285)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)

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.