Fix crash

This commit is contained in:
Victor Shcherb 2016-08-14 21:28:06 +02:00
parent 065668b72d
commit d6c19824b8

View file

@ -1041,7 +1041,9 @@ public class ResourceManager {
indexFileNames.remove(fileName); indexFileNames.remove(fileName);
renderer.closeConnection(fileName); renderer.closeConnection(fileName);
BinaryMapReaderResource resource = fileReaders.remove(fileName); BinaryMapReaderResource resource = fileReaders.remove(fileName);
resource.close(); if(resource != null) {
resource.close();
}
} }
public synchronized void close(){ public synchronized void close(){