mapbox / mapbox/mapbox-navigation-android
RuntimeRouteStylingActivity NullPointerException
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 651
- Forks
- 321
- PR merge metrics
- No merged PRs in 30d
Description
An issue caught by a Robo test https://github.com/mapbox/mapbox-navigation-android/pull/3616 https://app.circleci.com/pipelines/github/mapbox/mapbox-navigation-android/8932/workflows/b3de3267-d92f-4161-a699-6616fd3301fb/jobs/33042 https://console.firebase.google.com/u/0/project/mapbox-navigation-android/testlab/histories/bh.2e74b6b076d6fa53/matrices/5629209200053228001/executions/bs.7d650b4d1c24d713
```
FATAL EXCEPTION: main
Process: com.mapbox.navigation.examples, PID: 12457
java.lang.NullPointerException: Attempt to invoke direct method 'void com.mapbox.navigation.examples.core.RuntimeRouteStylingActivity.i0(java.util.List)' on a null object reference
at com.mapbox.navigation.examples.core.RuntimeRouteStylingActivity.Z(Unknown Source:0)
at com.mapbox.navigation.examples.core.RuntimeRouteStylingActivity$c.c(Unknown Source:12)
at com.mapbox.navigation.examples.core.RuntimeRouteStylingActivity$c.a(Unknown Source:2)
at d.b.f.b.o.b.g(Unknown Source:152)
at d.b.f.b.o.b.e(Unknown Source:27)
at d.b.f.b.o.a$a.a(Unknown Source:27)
at d.b.f.b.o.a$a.invoke(Unknown Source:2)
at d.b.f.b.o.c.e.h(Unknown Source:16)
at d.b.f.b.o.c.e$a.g(Unknown Source:73)
at e.v.k.a.a.i(Unknown Source:9)
at kotlinx.coroutines.c1.d(Unknown Source:72)
at kotlinx.coroutines.c1.a(Unknown Source:49)
at kotlinx.coroutines.l.r(Unknown Source:7)
at kotlinx.coroutines.l.H(Unknown Source:19)
at kotlinx.coroutines.l.f(Unknown Source:20)
at kotlinx.coroutines.android.a$a.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
```
cc @cafesilencio
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Robo test crash artifacts linked in the issue, then inspect RuntimeRouteStylingActivity and trace the obfuscated call path around the null reference. Reproduce the failure using the linked CircleCI or Firebase Test Lab run; done means the Robo test no longer produces this NullPointerException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100