java.lang.RuntimeException: Unable to resume activity {com.android.deskclock/com.android.deskclock.alarms.AlarmActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference

github.com | 4 months ago
  1. 0

    Commits · temasek/android_packages_apps_DeskClock · GitHub

    github.com | 4 months ago
    java.lang.RuntimeException: Unable to resume activity {com.android.deskclock/com.android.deskclock.alarms.AlarmActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference
  2. 0

    [ROM][OFFICIAL] CyanogenMod 13.0 Nightlies for the HTC One m8 - Post #0

    xda-developers.com | 8 months ago
    java.lang.RuntimeException: Unable to resume activity {com.android.deskclock/com.android.deskclock.alarms.AlarmActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference
  3. 0

    DeskClock FC each time alarm is triggered: java.lang.RuntimeException: Unable to resume activity {com.android.deskclock/com.android.deskclock.alarms.AlarmActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3137) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3168) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1407) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5461) 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) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference at android.support.v4.graphics.drawable.DrawableWrapperDonut.onBoundsChange(DrawableWrapperDonut.java:57) at android.graphics.drawable.Drawable.setBounds(Drawable.java:168) at android.graphics.drawable.Drawable.setBounds(Drawable.java:177) at android.support.v4.graphics.drawable.DrawableWrapperDonut.setWrappedDrawable(DrawableWrapperDonut.java:252) at android.support.v4.graphics.drawable.DrawableWrapperDonut.<init>(DrawableWrapperDonut.java:47) at android.support.v4.graphics.drawable.DrawableWrapperHoneycomb.<init>(DrawableWrapperHoneycomb.java:24) at android.support.v4.graphics.drawable.DrawableWrapperKitKat.<init>(DrawableWrapperKitKat.java:24) at android.support.v4.graphics.drawable.DrawableWrapperLollipop.<init>(DrawableWrapperLollipop.java:35) at android.support.v4.graphics.drawable.DrawableWrapperLollipop.<init>(DrawableWrapperLollipop.java:31) at android.support.v4.graphics.drawable.DrawableCompatApi22.wrapForTinting(DrawableCompatApi22.java:28) at android.support.v4.graphics.drawable.DrawableCompat$LollipopMr1DrawableImpl.wrap(DrawableCompat.java:191) at android.support.v4.graphics.drawable.DrawableCompat.wrap(DrawableCompat.java:344) at com.android.deskclock.AnimatorUtils$4.set(AnimatorUtils.java:81) at com.android.deskclock.AnimatorUtils$4.set(AnimatorUtils.java:78) at android.animation.PropertyValuesHolder.setAnimatedValue(PropertyValuesHolder.java:937) at android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:981) at android.animation.ValueAnimator.setCurrentFraction(ValueAnimator.java:642) at com.android.deskclock.AnimatorUtils.setAnimatedFraction(AnimatorUtils.java:97) at com.android.deskclock.alarms.AlarmActivity.setAnimatedFractions(AlarmActivity.java:626) at com.android.deskclock.alarms.AlarmActivity.resetAnimations(AlarmActivity.java:551) at com.android.deskclock.alarms.AlarmActivity.onResume(AlarmActivity.java:358) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1259) at android.app.Activity.performResume(Activity.java:6327) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3126) ... 8 more

    JIRA | 9 months ago | Michal M
    java.lang.RuntimeException: Unable to resume activity {com.android.deskclock/com.android.deskclock.alarms.AlarmActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    DeskClock FC each time alarm is triggered: java.lang.RuntimeException: Unable to resume activity {com.android.deskclock/com.android.deskclock.alarms.AlarmActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3137) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3168) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1407) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5461) 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) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference at android.support.v4.graphics.drawable.DrawableWrapperDonut.onBoundsChange(DrawableWrapperDonut.java:57) at android.graphics.drawable.Drawable.setBounds(Drawable.java:168) at android.graphics.drawable.Drawable.setBounds(Drawable.java:177) at android.support.v4.graphics.drawable.DrawableWrapperDonut.setWrappedDrawable(DrawableWrapperDonut.java:252) at android.support.v4.graphics.drawable.DrawableWrapperDonut.<init>(DrawableWrapperDonut.java:47) at android.support.v4.graphics.drawable.DrawableWrapperHoneycomb.<init>(DrawableWrapperHoneycomb.java:24) at android.support.v4.graphics.drawable.DrawableWrapperKitKat.<init>(DrawableWrapperKitKat.java:24) at android.support.v4.graphics.drawable.DrawableWrapperLollipop.<init>(DrawableWrapperLollipop.java:35) at android.support.v4.graphics.drawable.DrawableWrapperLollipop.<init>(DrawableWrapperLollipop.java:31) at android.support.v4.graphics.drawable.DrawableCompatApi22.wrapForTinting(DrawableCompatApi22.java:28) at android.support.v4.graphics.drawable.DrawableCompat$LollipopMr1DrawableImpl.wrap(DrawableCompat.java:191) at android.support.v4.graphics.drawable.DrawableCompat.wrap(DrawableCompat.java:344) at com.android.deskclock.AnimatorUtils$4.set(AnimatorUtils.java:81) at com.android.deskclock.AnimatorUtils$4.set(AnimatorUtils.java:78) at android.animation.PropertyValuesHolder.setAnimatedValue(PropertyValuesHolder.java:937) at android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:981) at android.animation.ValueAnimator.setCurrentFraction(ValueAnimator.java:642) at com.android.deskclock.AnimatorUtils.setAnimatedFraction(AnimatorUtils.java:97) at com.android.deskclock.alarms.AlarmActivity.setAnimatedFractions(AlarmActivity.java:626) at com.android.deskclock.alarms.AlarmActivity.resetAnimations(AlarmActivity.java:551) at com.android.deskclock.alarms.AlarmActivity.onResume(AlarmActivity.java:358) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1259) at android.app.Activity.performResume(Activity.java:6327) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3126) ... 8 more

    JIRA | 9 months ago | Michal M
    java.lang.RuntimeException: Unable to resume activity {com.android.deskclock/com.android.deskclock.alarms.AlarmActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference
  6. 0

    When the alarm starts to ring it doesnt show the snooze and dismiss interface and shows a message that the clock stoppedjava.lang.RuntimeException: Unable to resume activity {com.android.deskclock/com.android.deskclock.alarms.AlarmActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3137) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3168) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1407) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5461) 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) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference at android.support.v4.graphics.drawable.DrawableWrapperDonut.onBoundsChange(DrawableWrapperDonut.java:57) at android.graphics.drawable.Drawable.setBounds(Drawable.java:168) at android.graphics.drawable.Drawable.setBounds(Drawable.java:177) at android.support.v4.graphics.drawable.DrawableWrapperDonut.setWrappedDrawable(DrawableWrapperDonut.java:252) at android.support.v4.graphics.drawable.DrawableWrapperDonut.<init>(DrawableWrapperDonut.java:47) at android.support.v4.graphics.drawable.DrawableWrapperHoneycomb.<init>(DrawableWrapperHoneycomb.java:24) at android.support.v4.graphics.drawable.DrawableWrapperKitKat.<init>(DrawableWrapperKitKat.java:24) at android.support.v4.graphics.drawable.DrawableWrapperLollipop.<init>(DrawableWrapperLollipop.java:35) at android.support.v4.graphics.drawable.DrawableWrapperLollipop.<init>(DrawableWrapperLollipop.java:31) at android.support.v4.graphics.drawable.DrawableCompatApi22.wrapForTinting(DrawableCompatApi22.java:28) at android.support.v4.graphics.drawable.DrawableCompat$LollipopMr1DrawableImpl.wrap(DrawableCompat.java:191) at android.support.v4.graphics.drawable.DrawableCompat.wrap(DrawableCompat.java:344) at com.android.deskclock.AnimatorUtils$4.set(AnimatorUtils.java:81) at com.android.deskclock.AnimatorUtils$4.set(AnimatorUtils.java:78) at android.animation.PropertyValuesHolder.setAnimatedValue(PropertyValuesHolder.java:937) at android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:981) at android.animation.ValueAnimator.setCurrentFraction(ValueAnimator.java:642) at com.android.deskclock.AnimatorUtils.setAnimatedFraction(AnimatorUtils.java:97) at com.android.deskclock.alarms.AlarmActivity.setAnimatedFractions(AlarmActivity.java:626) at com.android.deskclock.alarms.AlarmActivity.resetAnimations(AlarmActivity.java:551) at com.android.deskclock.alarms.AlarmActivity.onResume(AlarmActivity.java:358) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1259) at android.app.Activity.performResume(Activity.java:6327) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3126) ... 8 more

    JIRA | 9 months ago | Sorin
    stoppedjava.lang.RuntimeException: Unable to resume activity {com.android.deskclock/com.android.deskclock.alarms.AlarmActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' 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 android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference

      at android.support.v4.graphics.drawable.DrawableWrapperDonut.onBoundsChange()
    2. android-support-v13
      DrawableWrapperDonut.onBoundsChange
      1. android.support.v4.graphics.drawable.DrawableWrapperDonut.onBoundsChange(DrawableWrapperDonut.java:57)
      1 frame
    3. Android Platform
      Drawable.setBounds
      1. android.graphics.drawable.Drawable.setBounds(Drawable.java:168)
      2. android.graphics.drawable.Drawable.setBounds(Drawable.java:177)
      2 frames
    4. android-support-v13
      DrawableCompat.wrap
      1. android.support.v4.graphics.drawable.DrawableWrapperDonut.setWrappedDrawable(DrawableWrapperDonut.java:252)
      2. android.support.v4.graphics.drawable.DrawableWrapperDonut.<init>(DrawableWrapperDonut.java:47)
      3. android.support.v4.graphics.drawable.DrawableWrapperHoneycomb.<init>(DrawableWrapperHoneycomb.java:24)
      4. android.support.v4.graphics.drawable.DrawableWrapperKitKat.<init>(DrawableWrapperKitKat.java:24)
      5. android.support.v4.graphics.drawable.DrawableWrapperLollipop.<init>(DrawableWrapperLollipop.java:35)
      6. android.support.v4.graphics.drawable.DrawableWrapperLollipop.<init>(DrawableWrapperLollipop.java:31)
      7. android.support.v4.graphics.drawable.DrawableCompatApi22.wrapForTinting(DrawableCompatApi22.java:28)
      8. android.support.v4.graphics.drawable.DrawableCompat$LollipopMr1DrawableImpl.wrap(DrawableCompat.java:191)
      9. android.support.v4.graphics.drawable.DrawableCompat.wrap(DrawableCompat.java:344)
      9 frames
    5. com.android.deskclock
      AnimatorUtils$4.set
      1. com.android.deskclock.AnimatorUtils$4.set(AnimatorUtils.java:81)
      2. com.android.deskclock.AnimatorUtils$4.set(AnimatorUtils.java:78)
      2 frames
    6. Android Platform
      ValueAnimator.setCurrentFraction
      1. android.animation.PropertyValuesHolder.setAnimatedValue(PropertyValuesHolder.java:937)
      2. android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:981)
      3. android.animation.ValueAnimator.setCurrentFraction(ValueAnimator.java:642)
      3 frames
    7. com.android.deskclock
      AlarmActivity.onResume
      1. com.android.deskclock.AnimatorUtils.setAnimatedFraction(AnimatorUtils.java:97)
      2. com.android.deskclock.alarms.AlarmActivity.setAnimatedFractions(AlarmActivity.java:627)
      3. com.android.deskclock.alarms.AlarmActivity.resetAnimations(AlarmActivity.java:552)
      4. com.android.deskclock.alarms.AlarmActivity.onResume(AlarmActivity.java:359)
      4 frames
    8. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1259)
      2. android.app.Activity.performResume(Activity.java:6327)
      3. android.app.ActivityThread.performResumeActivity(ActivityThread.java:3126)
      4. android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3168)
      5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1407)
      6. android.os.Handler.dispatchMessage(Handler.java:102)
      7. android.os.Looper.loop(Looper.java:148)
      8. android.app.ActivityThread.main(ActivityThread.java:5465)
      8 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    10. 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