Page MenuHomeGitPull.it

Fix crash because of LocationComponent not initialized
Closed, ResolvedPublic

Description

Dear Developers of the amazing Free/Libre and Open Source app Libre BusTO,
Please triage my crash:

Version code:
77

Version name:
2.6.5

Android version:
16

Phone:
SM-A536B

Brand:
samsung

Stack:
kotlin.UninitializedPropertyAccessException: lateinit property locationComponent has not been initialized
	at it.reyboz.bustorino.fragments.GeneralMapLibreFragment.getLocationComponent(GeneralMapLibreFragment.kt:179)
	at it.reyboz.bustorino.fragments.LinesDetailFragment.hideMapAndShowStopList(LinesDetailFragment.kt:449)
	at it.reyboz.bustorino.fragments.LinesDetailFragment.onCreateView$lambda$3(LinesDetailFragment.kt:271)
	at it.reyboz.bustorino.fragments.LinesDetailFragment.$r8$lambda$bqbUeNbj5TRTyQbzqYIiXEYtelM(LinesDetailFragment.kt:0)
	at it.reyboz.bustorino.fragments.LinesDetailFragment$$ExternalSyntheticLambda21.onClick(D8$$SyntheticClass:0)
	at android.view.View.performClick(View.java:8508)
	at android.view.View.performClickInternal(View.java:8485)
	at android.view.View.-$$Nest$mperformClickInternal(View.java:0)
	at android.view.View$PerformClick.run(View.java:33213)
	at android.os.Handler.handleCallback(Handler.java:995)
	at android.os.Handler.dispatchMessage(Handler.java:103)
	at android.os.Looper.loopOnce(Looper.java:273)
	at android.os.Looper.loop(Looper.java:363)
	at android.app.ActivityThread.main(ActivityThread.java:10060)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)


logcat (last 30 lines):
10-10 14:00:28.753 I/BusTO-LivePosViewModel(25124): Have 5 trips in the DB
10-10 14:00:28.753 D/GeneralMapLibreFragment(25124): In fragment, have 2 updates to show
10-10 14:00:28.753 D/GeneralMapLibreFragment(25124): Updated 2 vehicles, created 0 vehicles
10-10 14:00:29.763 I/VRI[ActivityPrincipal]@ceddb3d(25124): ViewPostIme pointer 0
10-10 14:00:29.876 I/VRI[ActivityPrincipal]@ceddb3d(25124): ViewPostIme pointer 1
10-10 14:00:29.880 D/BusTO-MatoMQTT(25124): Removed: false, respondersMap: {}
10-10 14:00:29.880 D/BusTO-LivePosViewModel(25124): Took 0 ms to unsubscribe
10-10 14:00:29.881 D/AndroidRuntime(25124): Shutting down VM
--------- beginning of crash
10-10 14:00:29.882 E/AndroidRuntime(25124): FATAL EXCEPTION: main
10-10 14:00:29.882 E/AndroidRuntime(25124): Process: it.reyboz.bustorino, PID: 25124
10-10 14:00:29.882 E/AndroidRuntime(25124): kotlin.UninitializedPropertyAccessException: lateinit property locationComponent has not been initialized
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at it.reyboz.bustorino.fragments.GeneralMapLibreFragment.getLocationComponent(GeneralMapLibreFragment.kt:179)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at it.reyboz.bustorino.fragments.LinesDetailFragment.hideMapAndShowStopList(LinesDetailFragment.kt:449)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at it.reyboz.bustorino.fragments.LinesDetailFragment.onCreateView$lambda$3(LinesDetailFragment.kt:271)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at it.reyboz.bustorino.fragments.LinesDetailFragment.$r8$lambda$bqbUeNbj5TRTyQbzqYIiXEYtelM(LinesDetailFragment.kt:0)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at it.reyboz.bustorino.fragments.LinesDetailFragment$$ExternalSyntheticLambda21.onClick(D8$$SyntheticClass:0)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at android.view.View.performClick(View.java:8508)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at android.view.View.performClickInternal(View.java:8485)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at android.view.View.-$$Nest$mperformClickInternal(View.java:0)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at android.view.View$PerformClick.run(View.java:33213)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at android.os.Handler.handleCallback(Handler.java:995)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at android.os.Handler.dispatchMessage(Handler.java:103)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at android.os.Looper.loopOnce(Looper.java:273)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at android.os.Looper.loop(Looper.java:363)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at android.app.ActivityThread.main(ActivityThread.java:10060)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at java.lang.reflect.Method.invoke(Native Method)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
10-10 14:00:29.882 E/AndroidRuntime(25124): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)

Thank you! :)

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

Details

Changelog (EN)
Fix crash because of map location component not initialized
Changelog (IT)
Risolto crash nella posizione della mappa