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

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via xda-developers.com by Unknown author, 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 github.com by Unknown author, 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 Michal M, 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 Michal M, 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 GitHub by jraczak
, 10 months ago
Unable to resume activity {com.justinraczak.android.squadgoals/com.justinraczak.android.squadgoals.LogWorkoutActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
via Stack Overflow by user7796820
, 6 months ago
Unable to resume activity {com.beco.ibeco/com.beco.ibeco.app.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setColorFilter(int, android.graphics.PorterDuff$Mode)' on a null object reference
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.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:627)
at com.android.deskclock.alarms.AlarmActivity.resetAnimations(AlarmActivity.java:552)
at com.android.deskclock.alarms.AlarmActivity.onResume(AlarmActivity.java:359)
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:5465)
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 a tip to help other users and build your expert profile.

Write tip

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