Skip to content

Commit c571162

Browse files
authored
MapFileTileSource: add null check (#1256)
1 parent 1888985 commit c571162

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vtm/src/org/oscim/tiling/source/mapfile/MapFileTileSource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ public OpenResult open() {
182182
mapFile = file;
183183
databaseIndexCache = new IndexCache(inputChannel, INDEX_CACHE_SIZE);
184184

185-
log.fine("File version: " + fileInfo.fileVersion);
185+
if (fileInfo != null)
186+
log.fine("File version: " + fileInfo.fileVersion);
186187
return OpenResult.SUCCESS;
187188
} catch (IOException e) {
188189
log.severe(e.toString());

0 commit comments

Comments
 (0)