Fix crash
This commit is contained in:
parent
065668b72d
commit
d6c19824b8
1 changed files with 3 additions and 1 deletions
|
@ -1041,7 +1041,9 @@ public class ResourceManager {
|
|||
indexFileNames.remove(fileName);
|
||||
renderer.closeConnection(fileName);
|
||||
BinaryMapReaderResource resource = fileReaders.remove(fileName);
|
||||
resource.close();
|
||||
if(resource != null) {
|
||||
resource.close();
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void close(){
|
||||
|
|
Loading…
Reference in a new issue