- assigned_to: Daniel G
Reported by an user. It seems that he tried to open a map of unexpected type. Probably the map was oziexplorer but expected to be mapsforge, I supose.
The error stack was:
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=15, result=-1, data=Intent { (has extras) }} to activity {org.elevmaps/org.elevmaps.ElevMapsActivity}: java.lang.IllegalStateException: no map file is currently opened
at android.app.ActivityThread.deliverResults(ActivityThread.java:3641)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3684)
at android.app.ActivityThread.access$1300(ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1331)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5584)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: no map file is currently opened
at org.mapsforge.map.reader.MapDatabase.getMapFileInfo(MapDatabase.java:246)
at org.elevmaps.util.Helper.getMapRange(Helper.java:263)
at org.elevmaps.providers.MapTileProvider.isOutOfRange(MapTileProvider.java:141)
at org.elevmaps.ElevMapsActivity.loadMap(ElevMapsActivity.java:411)
at org.elevmaps.ElevMapsActivity.onActivityResult(ElevMapsActivity.java:324)
at android.app.Activity.dispatchActivityResult(Activity.java:5634)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3637)
... 11 more