Skip to content

Commit

Permalink
Ptotect against container being null
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Sep 10, 2023
1 parent aef28f3 commit 14f62b7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ public void destroy() {
tileCache.close();
synchronized (tileContainerCache) {
for (LocalTileContainer container : tileContainerCache.values()) {
container.close();
if (container != null) {
container.close();
}
}
tileContainerCache.clear();
}
Expand Down

0 comments on commit 14f62b7

Please sign in to comment.