Page MenuHomeGitPull.it

Fix NULL pointer in ActivityPrincipal.java:375 on version 1.15.4 on Android 6
Closed, ResolvedPublic

Description

Dear Developers,
Please triage this crash:

version code:
35

version name:
1.15.4

android version:
6.0

phone:
HUAWEI VNS-TL00

brand:
HUAWEI

stack:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.view.View.getResources()' on a null object reference
	at com.google.android.material.snackbar.Snackbar.make(Snackbar.java:262)
	at it.reyboz.bustorino.ActivityPrincipal.createDefaultSnackbar(ActivityPrincipal.java:375)
	at it.reyboz.bustorino.ActivityPrincipal.lambda$onCreate$0$ActivityPrincipal(ActivityPrincipal.java:201)
	at it.reyboz.bustorino.-$$Lambda$ActivityPrincipal$TdWUugMGicztTPuKtn3CSdW_2Ro.onChanged(lambda)
	at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
	at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
	at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
	at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
	at androidx.lifecycle.LiveData$1.run(LiveData.java:93)
	at android.os.Handler.handleCallback(Handler.java:743)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:150)
	at android.app.ActivityThread.main(ActivityThread.java:5659)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:822)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:712)

Thank you! :)

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

Event Timeline

Anther similar report today:

version code:
35

version name:
1.15.4

android version:
10

phone:
LM-Q730

brand:
lge

stack:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.view.View.getResources()' on a null object reference
	at com.google.android.material.snackbar.Snackbar.make(Snackbar.java:262)
	at it.reyboz.bustorino.ActivityPrincipal.createDefaultSnackbar(ActivityPrincipal.java:375)
	at it.reyboz.bustorino.ActivityPrincipal.lambda$onCreate$0$ActivityPrincipal(ActivityPrincipal.java:201)
	at it.reyboz.bustorino.-$$Lambda$ActivityPrincipal$TdWUugMGicztTPuKtn3CSdW_2Ro.onChanged(Unknown Source:4)
	at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
	at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
	at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
	at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
	at androidx.lifecycle.LiveData$1.run(LiveData.java:93)
	at android.os.Handler.handleCallback(Handler.java:883)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loop(Looper.java:214)
	at android.app.ActivityThread.main(ActivityThread.java:7615)
	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:964)
fabio.mazza claimed this task.