waar19 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

NPE in OpenStreetMapTileFilesystemProvider when no andnav2 dir on startup #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Seeing an NPE in OpenStreetMapTileFilesystemProvider when starting on a device 
without /sdcard/andnav2/ directory. Attached is simple fix.

09-19 23:03:20.782: ERROR/AndroidRuntime(447): Caused by: 
java.lang.NullPointerException
09-19 23:03:20.782: ERROR/AndroidRuntime(447):     at 
org.andnav.osm.tileprovider.OpenStreetMapTileFilesystemProvider.findZipFiles(Ope
nStreetMapTileFilesystemProvider.java:148)
09-19 23:03:20.782: ERROR/AndroidRuntime(447):     at 
org.andnav.osm.tileprovider.OpenStreetMapTileFilesystemProvider.<init>(OpenStree
tMapTileFilesystemProvider.java:63)
09-19 23:03:20.782: ERROR/AndroidRuntime(447):     at 
org.andnav.osm.views.util.OpenStreetMapTileProviderDirect.<init>(OpenStreetMapTi
leProviderD

Original issue reported on code.google.com by bob.hage...@gmail.com on 20 Sep 2010 at 4:31

Attachments:

GoogleCodeExporter commented 9 years ago
You must have read my mind! I just made a note to myself to check in general 
how osmdroid behaves when the sdcard is not available, and then I saw this 
issue. I think I can do a less simple and more comprehensive fix.

Original comment by neilboyd on 21 Sep 2010 at 7:10

GoogleCodeExporter commented 9 years ago

Original comment by neilboyd on 21 Sep 2010 at 7:45

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r379.

Original comment by neilboyd on 21 Sep 2010 at 2:27

GoogleCodeExporter commented 9 years ago
See also issue 31.

Original comment by neilboyd on 22 Sep 2010 at 4:59