java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Christian Buck,
  • 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)
    via by Christian Buck,
  • 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!
    via by 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 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)
    No Bugmate found.