amiqat / osmdroid

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

NullPointerException in MapTileFilesystemProvider.loadTile() line 153 #309

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an activity with osm MapView
2. Create an XYTileSource with seamark and a overlay
3. Add the overlay with the tile source  
4. Load the activity on the emulator or the device

///// Java code 
XYTileSource openSeaSource = new XYTileSource("seamark", string.mapnik, 0, 18, 
256, ".png", "http://tiles.openseamap.org/seamark/");

MapTileProviderBasic mapTileProviderBasic = new 
MapTileProviderBasic(getApplicationContext());          mapTileProviderBasic.setTileSou
rce(openSeaSource);
TilesOverlay seamarkOverlay = new 
TilesOverlay(mapTileProviderBasic,getApplicationContext());
map.getOverlays().add(seamarkOverlay);

///// End Java code

What version of the product are you using? 
osmdroid-android-3.0.7

On what operating system?
Ubuntu

Please provide any additional information below.
Full stacktrace
02-09 15:03:03.639: 
E/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(385): Error 
downloading tile: /10/529/375
02-09 15:03:03.639: 
E/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(385): 
java.lang.NullPointerException
02-09 15:03:03.639: 
E/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(385):     at 
org.osmdroid.tileprovider.modules.MapTileFilesystemProvider$TileLoader.loadTile(
MapTileFilesystemProvider.java:153)
02-09 15:03:03.639: 
E/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(385):     at 
org.osmdroid.tileprovider.modules.MapTileModuleProviderBase$TileLoader.run(MapTi
leModuleProviderBase.java:237)
02-09 15:03:03.639: 
E/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(385):     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
02-09 15:03:03.639: 
E/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(385):     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
02-09 15:03:03.639: 
E/org.osmdroid.tileprovider.modules.MapTileModuleProviderBase(385):     at 
java.lang.Thread.run(Thread.java:1096)

Original issue reported on code.google.com by nourredi...@gmail.com on 9 Feb 2012 at 3:13

GoogleCodeExporter commented 8 years ago
This is for an older version of osmdroid. Please post a new issue if the 
problem is still present. Check the samples app and compare it to your app.

Original comment by kurtzm...@gmail.com on 13 Apr 2013 at 8:12