Page MenuHomeGitPull.it

Fix crash caused by NullPointerException in FloatingActionButton
Closed, WontfixPublic

Description

Dear Developers,
Please triage this crash:

version code:
30

version name:
1.13.1-dev

android version:
10

phone:
Mi A2 Lite

brand:
xiaomi

stack:
java.lang.RuntimeException: Unable to resume activity {it.reyboz.bustorino.debug/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:4206)
	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4238)
	at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2017)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:214)
	at android.app.ActivityThread.main(ActivityThread.java:7397)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
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:194)
	at androidx.fragment.app.Fragment.performResume(Fragment.java:2748)
	at androidx.fragment.app.FragmentStateManager.resume(FragmentStateManager.java:373)
	at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1211)
	at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1368)
	at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1446)
	at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1509)
	at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2637)
	at androidx.fragment.app.FragmentManager.dispatchResume(FragmentManager.java:2601)
	at androidx.fragment.app.FragmentController.dispatchResume(FragmentController.java:269)
	at androidx.fragment.app.FragmentActivity.onResumeFragments(FragmentActivity.java:478)
	at androidx.fragment.app.FragmentActivity.onPostResume(FragmentActivity.java:467)
	at androidx.appcompat.app.AppCompatActivity.onPostResume(AppCompatActivity.java:204)
	at android.app.Activity.performResume(Activity.java:7964)
	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4196)
	... 11 more

Thank you! :)

by Yuri C.

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

Event Timeline

fabio.mazza claimed this task.
fabio.mazza subscribed.

This is related to an old version of the app.
It is probably fixed in the latest one.