java.lang.RuntimeException: Unable to resume activity {jahirfiquitiva.apps.iconshowcase/jahirfiquitiva.apps.iconshowcase.activities.ShowcaseActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.design.widget.AppBarLayout$Behavior.setTopAndBottomOffset(int)' 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

,

Create an empty public constructor in your code.

Solutions on the web

via GitHub by jahirfiquitiva
, 1 year ago
Unable to resume activity {jahirfiquitiva.apps.iconshowcase/jahirfiquitiva.apps.iconshowcase.activities.ShowcaseActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.design.widget.AppBarLayout$Behavior.setTopAndBottomOffset(int)' on a null object reference
via Stack Overflow by Vyacheslav
, 8 months ago
Unable to resume activity {com.google.android.wearable.app/com.google.android.clockwork.companion.setupwizard.steps.find.FindDeviceActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothAdapter.isEnabled()' on a null object reference
via GitHub by yenon
, 1 year ago
Unable to resume activity {com.horaapps.leafpic/com.horaapps.leafpic.PhotoPagerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.RelativeLayout.setBackgroundColor(int)' on a null object reference
via GitHub by dmsherazi
, 1 year ago
Unable to resume activity {net.kindows.chitchat/net.kindows.DecoderActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference
via Stack Overflow by Bartłomiej Rasztabiga
, 11 months ago
Unable to resume activity {pl.rasztabiga.klasa1a/pl.rasztabiga.klasa1a.mainAct.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference
via GitHub by YShein
, 3 months ago
Unable to resume activity {com.example.package/com.auth0.android.provider.AuthenticationActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.BaseBundle.getBoolean(java.lang.String, boolean)' on a null object reference
java.lang.RuntimeException: Unable to resume activity {jahirfiquitiva.apps.iconshowcase/jahirfiquitiva.apps.iconshowcase.activities.ShowcaseActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.design.widget.AppBarLayout$Behavior.setTopAndBottomOffset(int)' on a null object reference
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3147)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3178)

Users with the same issue

3 times, 4 months ago
Once, 1 year ago
16 times, 1 year ago
1047 times, 1 year ago
4 times, 1 year ago

Write tip

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