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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JIRA by Sorin, 1 year ago
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
via JIRA by Sorin, 1 year ago
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
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference
at android.graphics.drawable.Drawable.setBounds(Drawable.java:168)
at android.support.v4.graphics.drawable.DrawableWrapperDonut.setWrappedDrawable(DrawableWrapperDonut.java:252)
at android.support.v4.graphics.drawable.DrawableWrapperDonut.(DrawableWrapperDonut.java:47)
at android.support.v4.graphics.drawable.DrawableWrapperHoneycomb.(DrawableWrapperHoneycomb.java:24)
at android.support.v4.graphics.drawable.DrawableWrapperKitKat.(DrawableWrapperKitKat.java:24)
at android.support.v4.graphics.drawable.DrawableWrapperLollipop.(DrawableWrapperLollipop.java:35)
at android.support.v4.graphics.drawable.DrawableWrapperLollipop.(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 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 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)
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 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.