Page MenuHomeGitPull.it

Fix NULL pointer in ActivityMap on Android 10 caused by File.getAbsolutePath() in version 1.14.1
Closed, WontfixPublic

Description

Dear Developers,
Please triage this crash:

version code:
32

version name:
1.14.1

android version:
10

phone:
BE2028

brand:
OnePlus

stack:
java.lang.RuntimeException: Unable to start activity ComponentInfo{it.reyboz.bustorino/it.reyboz.bustorino.ActivityMap}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3382)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3521)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2128)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:214)
	at android.app.ActivityThread.main(ActivityThread.java:7711)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
	at org.osmdroid.config.DefaultConfigurationProvider.load(DefaultConfigurationProvider.java:337)
	at it.reyboz.bustorino.ActivityMap.onCreate(ActivityMap.java:101)
	at android.app.Activity.performCreate(Activity.java:7852)
	at android.app.Activity.performCreate(Activity.java:7841)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1325)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3357)
	... 11 more

Thank you! :)

  • C Jay

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

Event Timeline

valerio.bozzolan renamed this task from Fix NULL pointer in ActivityMap on Android 10 caused by File.getAbsolutePath() to Fix NULL pointer in ActivityMap on Android 10 caused by File.getAbsolutePath() in version 1.14.1.Feb 14 2022, 14:12
valerio.bozzolan claimed this task.

We have not enough resources to fix the upstream OSMDroid library but we can surely subscribe to their upstream bug:

https://github.com/osmdroid/osmdroid/issues/1636

Let's give that issue a thumbs up ๐Ÿ‘