java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ActivityInfo android.appwidget.AppWidgetProviderInfo.providerInfo' on a null object reference

JIRA | Christian Buck | 10 months ago
  1. 0

    My Widgets are not working. I only see a container without content. Trying to remove the Widgets from the Window crushes Trebuchet and gives me an Exception: java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ActivityInfo android.appwidget.AppWidgetProviderInfo.providerInfo' on a null object reference at com.android.launcher3.Launcher.removeAppWidget(Launcher.java:2126) at com.android.launcher3.DeleteDropTarget.removeWorkspaceOrFolderItem(DeleteDropTarget.java:83) at com.android.launcher3.DeleteDropTarget.completeDrop(DeleteDropTarget.java:64) at com.android.launcher3.ButtonDropTarget$2.run(ButtonDropTarget.java:235) at com.android.launcher3.DragLayer$3.onAnimationEnd(DragLayer.java:784) at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239) at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766) at android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) at android.view.Choreographer.doCallbacks(Choreographer.java:670) at android.view.Choreographer.doFrame(Choreographer.java:603) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5466) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

    JIRA | 10 months ago | Christian Buck
    java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ActivityInfo android.appwidget.AppWidgetProviderInfo.providerInfo' on a null object reference
  2. 0

    My Widgets are not working. I only see a container without content. Trying to remove the Widgets from the Window crushes Trebuchet and gives me an Exception: java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ActivityInfo android.appwidget.AppWidgetProviderInfo.providerInfo' on a null object reference at com.android.launcher3.Launcher.removeAppWidget(Launcher.java:2126) at com.android.launcher3.DeleteDropTarget.removeWorkspaceOrFolderItem(DeleteDropTarget.java:83) at com.android.launcher3.DeleteDropTarget.completeDrop(DeleteDropTarget.java:64) at com.android.launcher3.ButtonDropTarget$2.run(ButtonDropTarget.java:235) at com.android.launcher3.DragLayer$3.onAnimationEnd(DragLayer.java:784) at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239) at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766) at android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) at android.view.Choreographer.doCallbacks(Choreographer.java:670) at android.view.Choreographer.doFrame(Choreographer.java:603) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5466) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

    JIRA | 10 months ago | Christian Buck
    java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ActivityInfo android.appwidget.AppWidgetProviderInfo.providerInfo' on a null object reference
  3. 0

    I have three zombie widgets (music player, droid stats, calendar) and all of them throw NPE when I try to remove. Sry I was lazy and did not reported the first broken version. But in case of this NPE it looks not so difficult :|. stacktrace: {code} java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ActivityInfo android.appwidget.AppWidgetProviderInfo.providerInfo' on a null object reference at com.android.launcher3.Launcher.removeAppWidget(Launcher.java:2137) at com.android.launcher3.DeleteDropTarget.removeWorkspaceOrFolderItem(DeleteDropTarget.java:89) at com.android.launcher3.DeleteDropTarget.completeDrop(DeleteDropTarget.java:64) at com.android.launcher3.ButtonDropTarget$2.run(ButtonDropTarget.java:235) at com.android.launcher3.DragLayer$3.onAnimationEnd(DragLayer.java:784) at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239) at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766) at android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) at android.view.Choreographer.doCallbacks(Choreographer.java:670) at android.view.Choreographer.doFrame(Choreographer.java:603) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5466) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) {code} Screenshots to understand my description. Thx. in advance!

    JIRA | 9 months ago | Lars K.W. Gohlke
    java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ActivityInfo android.appwidget.AppWidgetProviderInfo.providerInfo' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 9#232027028

    GitHub | 5 months ago | piersguo
    java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ActivityInfo android.content.pm.ResolveInfo.activityInfo' on a null object reference
  6. 0

    Android6.0手机进入Add App选择列表选择任意一个应用均停止运行

    GitHub | 5 months ago | piersguo
    java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ActivityInfo android.content.pm.ResolveInfo.activityInfo' on a null object reference

    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 read from field 'android.content.pm.ActivityInfo android.appwidget.AppWidgetProviderInfo.providerInfo' on a null object reference

      at com.android.launcher3.Launcher.removeAppWidget()
    2. com.android.launcher3
      DragLayer$3.onAnimationEnd
      1. com.android.launcher3.Launcher.removeAppWidget(Launcher.java:2126)
      2. com.android.launcher3.DeleteDropTarget.removeWorkspaceOrFolderItem(DeleteDropTarget.java:83)
      3. com.android.launcher3.DeleteDropTarget.completeDrop(DeleteDropTarget.java:64)
      4. com.android.launcher3.ButtonDropTarget$2.run(ButtonDropTarget.java:235)
      5. com.android.launcher3.DragLayer$3.onAnimationEnd(DragLayer.java:784)
      5 frames
    3. Android Platform
      ActivityThread.main
      1. android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239)
      2. android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766)
      3. android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801)
      4. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
      5. android.view.Choreographer.doCallbacks(Choreographer.java:670)
      6. android.view.Choreographer.doFrame(Choreographer.java:603)
      7. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
      8. android.os.Handler.handleCallback(Handler.java:739)
      9. android.os.Handler.dispatchMessage(Handler.java:95)
      10. android.os.Looper.loop(Looper.java:148)
      11. android.app.ActivityThread.main(ActivityThread.java:5466)
      11 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames