diff --git a/vtm/src/org/oscim/layers/tile/vector/VectorTileLoader.java b/vtm/src/org/oscim/layers/tile/vector/VectorTileLoader.java index c4939dee..704466ba 100644 --- a/vtm/src/org/oscim/layers/tile/vector/VectorTileLoader.java +++ b/vtm/src/org/oscim/layers/tile/vector/VectorTileLoader.java @@ -102,19 +102,20 @@ public class VectorTileLoader extends TileLoader implements IRenderTheme.Callbac @Override public void cleanup() { - mTileDataSource.destroy(); + if (mTileDataSource != null) + mTileDataSource.destroy(); } @Override public boolean executeJob(MapTile tile) { if (mTileDataSource == null) { - log.debug("no tile source is set"); + log.error("no tile source is set"); return false; } if (renderTheme == null) { - log.debug("no theme is set"); + log.error("no theme is set"); return false; }