Page MenuHomeGitPull.it

Fix Animator crash caused by NullPointerException from LinesDetailFragment.kt:1302 on version 2.4.1
Closed, ResolvedPublic

Description

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

Version code:
64

Version name:
2.4.1

Android version:
11

Phone:
moto e32

Brand:
motorola

Stack:
java.lang.NullPointerException
	at it.reyboz.bustorino.fragments.LinesDetailFragment$animateNewPositionMove$1$1.onAnimationUpdate(LinesDetailFragment.kt:1302)
	at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1566)
	at android.animation.ValueAnimator.animateBasedOnTime(ValueAnimator.java:1357)
	at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1489)
	at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146)
	at android.animation.AnimationHandler.access$100(AnimationHandler.java:37)
	at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:54)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:970)
	at android.view.Choreographer.doCallbacks(Choreographer.java:796)
	at android.view.Choreographer.doFrame(Choreographer.java:727)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:223)
	at android.app.ActivityThread.main(ActivityThread.java:7955)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:603)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)


logcat (last 30 lines):
06-04 07:26:04.474 E/AndroidRuntime(23408): 	at android.view.Choreographer.doFrame(Choreographer.java:727)
06-04 07:26:04.474 E/AndroidRuntime(23408): 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957)
06-04 07:26:04.474 E/AndroidRuntime(23408): 	at android.os.Handler.handleCallback(Handler.java:938)
06-04 07:26:04.474 E/AndroidRuntime(23408): 	at android.os.Handler.dispatchMessage(Handler.java:99)
06-04 07:26:04.474 E/AndroidRuntime(23408): 	at android.os.Looper.loop(Looper.java:223)
06-04 07:26:04.474 E/AndroidRuntime(23408): 	at android.app.ActivityThread.main(ActivityThread.java:7955)
06-04 07:26:04.474 E/AndroidRuntime(23408): 	at java.lang.reflect.Method.invoke(Native Method)
06-04 07:26:04.474 E/AndroidRuntime(23408): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:603)
06-04 07:26:04.474 E/AndroidRuntime(23408): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
06-04 07:26:04.475 E/ACRA    (23408): ACRA caught a NullPointerException for it.reyboz.bustorino
06-04 07:26:04.475 E/ACRA    (23408): java.lang.NullPointerException
06-04 07:26:04.475 E/ACRA    (23408): 	at it.reyboz.bustorino.fragments.LinesDetailFragment$animateNewPositionMove$1$1.onAnimationUpdate(LinesDetailFragment.kt:1302)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1566)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.animation.ValueAnimator.animateBasedOnTime(ValueAnimator.java:1357)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1489)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.animation.AnimationHandler.access$100(AnimationHandler.java:37)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:54)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:970)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.view.Choreographer.doCallbacks(Choreographer.java:796)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.view.Choreographer.doFrame(Choreographer.java:727)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.os.Handler.handleCallback(Handler.java:938)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.os.Handler.dispatchMessage(Handler.java:99)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.os.Looper.loop(Looper.java:223)
06-04 07:26:04.475 E/ACRA    (23408): 	at android.app.ActivityThread.main(ActivityThread.java:7955)
06-04 07:26:04.475 E/ACRA    (23408): 	at java.lang.reflect.Method.invoke(Native Method)
06-04 07:26:04.475 E/ACRA    (23408): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:603)
06-04 07:26:04.475 E/ACRA    (23408): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Steps I've done:

  1. Opened app
  2. Set bus stop number

Thank you! :)

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

Originally reported by "Simone"

Exploration

So the affected line seems this:

https://gitpull.it/source/libre-busto/browse/master/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt;20aa0d93ec8f8fc439c6455d38172b840e4134fd$1302

val update = updatesByVehDict[positionUpdate.vehicle]!!

So positionUpdate may be null? or updatesByVehDict? lol

Details

Changelog (EN)
Fix crash in animating the buses
Changelog (IT)
Risolto crash nell'animazione dei bus

Event Timeline

fabio.mazza triaged this task as Unbreak Now! priority.Jul 14 2025, 16:08
fabio.mazza lowered the priority of this task from Unbreak Now! to High.
fabio.mazza raised the priority of this task from High to Unbreak Now!.
fabio.mazza renamed this task from Fix crash caused by NullPointerException from LinesDetailFragment.kt:1302 on version 2.4.1 to Fix Animator crash caused by NullPointerException from LinesDetailFragment.kt:1302 on version 2.4.1.Jul 14 2025, 16:10
fabio.mazza set Changelog (EN) to Fix crash in animating the buses .
fabio.mazza set Changelog (IT) to Risolto crash nell'animazione dei bus.