check null

master
Thomas Rudin 2018-07-25 19:59:12 +02:00
parent ea57d0acb8
commit 71a22d1c57
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public class DatabaseTileCache implements TileCache, Runnable {
Optional<byte[]> optional = cache.getIfPresent(coordinate);
if (optional.isPresent()){
if (optional != null && optional.isPresent()){
byte[] data = optional.get();
if (data != null)