cgeo/c-geo-opensource — pull request #1633 by Portree-Kid (2012-05-24 18:23:13+00:00)
Title: Fix for #1582

Two parts
* patched mapsforge
* toast with message

What I did in mapsforge is in the following patch.

```
### Eclipse Workspace Patch 1.0
#P mapsforge-map-reader
Index: src/main/java/org/mapsforge/map/reader/MapDatabase.java
===================================================================
--- src/main/java/org/mapsforge/map/reader/MapDatabase.java	(Revision 2026)
+++ src/main/java/org/mapsforge/map/reader/MapDatabase.java	(Arbeitskopie)
@@ -243,6 +243,10 @@
public void executeQuery(Tile tile, MapDatabaseCallback mapDatabaseCallback) {
try {
prepareExecution();
+	// We haven't got a File
+	if (mapFileHeader == null) {
+	return;
+	}
QueryParameters queryParameters = new QueryParameters();
queryParameters.queryZoomLevel = this.mapFileHeader.getQueryZoomLevel(tile.zoomLevel);
```