Page MenuHomeGitPull.it

Fix NullPointerException caused by FloatingActionButton.show() in ResultListFragment.java:214 on version 1.14.1
Closed, ResolvedPublic

Description

Created by @fabio.mazza

Please triage this crash:

version code:
32

version name:
1.14.1

phone:
SM-G930F

brand:
samsung

stack:
java.lang.RuntimeException: Unable to resume activity {it.reyboz.bustorino/it.reyboz.bustorino.ActivityMain}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.material.floatingactionbutton.FloatingActionButton.show()' on a null object reference
	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3790)
	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3830)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3038)
	at android.app.ActivityThread.-wrap11(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
	at android.os.Handler.dispatchMessage(Handler.java:105)
	at android.os.Looper.loop(Looper.java:164)
	at android.app.ActivityThread.main(ActivityThread.java:6944)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.material.floatingactionbutton.FloatingActionButton.show()' on a null object reference
	at it.reyboz.bustorino.fragments.ResultListFragment.onResume(ResultListFragment.java:214)
	at it.reyboz.bustorino.fragments.ArrivalsFragment.onResume(ArrivalsFragment.java:199)
	at androidx.fragment.app.Fragment.performResume(Fragment.java:3026)
	at androidx.fragment.app.FragmentStateManager.resume(FragmentStateManager.java:604)
	at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:306)
	at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:112)
	at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1636)
	at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3112)
	at androidx.fragment.app.FragmentManager.dispatchResume(FragmentManager.java:3070)
	at androidx.fragment.app.FragmentController.dispatchResume(FragmentController.java:273)
	at androidx.fragment.app.FragmentActivity.onResumeFragments(FragmentActivity.java:434)
	at androidx.fragment.app.FragmentActivity.onPostResume(FragmentActivity.java:423)
	at androidx.appcompat.app.AppCompatActivity.onPostResume(AppCompatActivity.java:204)
	at android.app.Activity.performResume(Activity.java:7439)
	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3765)
	... 10 more

Thank you! :)

Generated with https://lab.reyboz.it/libre-busto/crash-report/ (P15)

Revisions and Commits

Event Timeline

valerio.bozzolan renamed this task from Fix crash to Fix crash "Unable to resume activity" on version 1.14.1.Jul 20 2021, 09:54
valerio.bozzolan renamed this task from Fix crash "Unable to resume activity" on version 1.14.1 to Fix NullPointerException caused by FloatingActionButton.show() in ResultListFragment.java:214 on version 1.14.1.