java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.systemui.qs.QSPage.addView(android.view.View)' on a null object reference

JIRA | Lorenzo Alfonsi | 12 months ago
  1. 0

    As the title says, if a 3rd page is created while rearranging QS tiles, SystemUI FC with this error: 12-14 12:50:28.476 1083 1083 E AndroidRuntime: FATAL EXCEPTION: main 12-14 12:50:28.476 1083 1083 E AndroidRuntime: Process: com.android.systemui, PID: 1083 12-14 12:50:28.476 1083 1083 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.systemui.qs.QSPage.addView(android.view.View)' on a null object reference 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at com.android.systemui.qs.QSDragPanel$10.onAnimationEnd(QSDragPanel.java:1079) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1114) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:670) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:603) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5466) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) I didn't upload a logcat as the error i pasted should be enough to debug it (Attempt to invoke virtual method 'void com.android.systemui.qs.QSPage.addView(android.view.View)' on a null object reference). Last known good is 11 dec because we didn't receive 12 dec nightly.

    JIRA | 12 months ago | Lorenzo Alfonsi
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.systemui.qs.QSPage.addView(android.view.View)' on a null object reference
  2. 0

    As the title says, if a 3rd page is created while rearranging QS tiles, SystemUI FC with this error: 12-14 12:50:28.476 1083 1083 E AndroidRuntime: FATAL EXCEPTION: main 12-14 12:50:28.476 1083 1083 E AndroidRuntime: Process: com.android.systemui, PID: 1083 12-14 12:50:28.476 1083 1083 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.systemui.qs.QSPage.addView(android.view.View)' on a null object reference 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at com.android.systemui.qs.QSDragPanel$10.onAnimationEnd(QSDragPanel.java:1079) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1114) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:670) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:603) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5466) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 12-14 12:50:28.476 1083 1083 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) I didn't upload a logcat as the error i pasted should be enough to debug it (Attempt to invoke virtual method 'void com.android.systemui.qs.QSPage.addView(android.view.View)' on a null object reference). Last known good is 11 dec because we didn't receive 12 dec nightly.

    JIRA | 12 months ago | Lorenzo Alfonsi
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.systemui.qs.QSPage.addView(android.view.View)' on a null object reference
  3. 0

    android tests failing because appium's apidemos is crashing

    GitHub | 2 years ago | jlipps
    java.lang.RuntimeException: Unable to start activity ComponentInfo{io.appium.android.apis/io.appium.android.apis.app.StatusBarNotifications}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 8#129288636

    GitHub | 1 year ago | agungR
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.cube/com.example.cube.InputActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
  6. 0

    dismiss() crash

    GitHub | 1 year ago | gintechsystems
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewGroup.removeView(android.view.View)' 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 invoke virtual method 'void com.android.systemui.qs.QSPage.addView(android.view.View)' on a null object reference

      at com.android.systemui.qs.QSDragPanel$10.onAnimationEnd()
    2. com.android.systemui
      QSDragPanel$10.onAnimationEnd
      1. com.android.systemui.qs.QSDragPanel$10.onAnimationEnd(QSDragPanel.java:1079)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1114)
      2. android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239)
      3. android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766)
      4. android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801)
      5. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
      6. android.view.Choreographer.doCallbacks(Choreographer.java:670)
      7. android.view.Choreographer.doFrame(Choreographer.java:603)
      8. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
      9. android.os.Handler.handleCallback(Handler.java:739)
      10. android.os.Handler.dispatchMessage(Handler.java:95)
      11. android.os.Looper.loop(Looper.java:148)
      12. android.app.ActivityThread.main(ActivityThread.java:5466)
      12 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