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

Stack Overflow | Angelo Charl | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    "Attempt to get length of null array" on Permission run time

    Stack Overflow | 5 months ago | Angelo Charl
    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

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to get length of null array

      at com.android.packageinstaller.permission.ui.GrantPermissionsActivity.computePermissionGrantState()
    2. com.android.packageinstaller
      GrantPermissionsActivity.onCreate
      1. com.android.packageinstaller.permission.ui.GrantPermissionsActivity.computePermissionGrantState(GrantPermissionsActivity.java:312)
      2. com.android.packageinstaller.permission.ui.GrantPermissionsActivity.updateDefaultResults(GrantPermissionsActivity.java:362)
      3. com.android.packageinstaller.permission.ui.GrantPermissionsActivity.onCreate(GrantPermissionsActivity.java:105)
      3 frames
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6285)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370)
      3 frames