Page MenuHomeGitPull.it

Fix crash "Attempt to invoke virtual method 'void com.google.android.material.snackbar.Snackbar.dismiss()' on a null object reference"
Closed, InvalidPublic

Description

Dear Developers,
Please triage this crash.

Here part of the crash dump:

version code:
30

version name:
1.13.1-dev

phone:
SM-G900F

brand:
samsung

stack:
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.material.snackbar.Snackbar.dismiss()' on a null object reference
	at it.reyboz.bustorino.ActivityMain.lambda$onCreate$4$ActivityMain(ActivityMain.java:313)
	at it.reyboz.bustorino.-$$Lambda$ActivityMain$nMGSp6FH5QWKJDynwhhans26xng.onChanged(Unknown Source:4)
	at androidx.lifecycle.LiveData.considerNotify(LiveData.java:131)
	at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:149)
	at androidx.lifecycle.LiveData.setValue(LiveData.java:307)
	at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
	at androidx.lifecycle.LiveData$1.run(LiveData.java:91)
	at android.os.Handler.handleCallback(Handler.java:873)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:193)
	at android.app.ActivityThread.main(ActivityThread.java:6718)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Thank you! :)

Generated with https://lab.reyboz.it/libre-busto/crash-report/
By Luca Rossi (thank you so much!)

Event Timeline

fabio.mazza closed this task as Invalid.Tue, Feb 16, 11:43