This commit is contained in:
Victor Shcherb 2013-04-27 01:26:01 +02:00
parent 4d150aebe0
commit 21e3f9ff81

View file

@ -94,7 +94,8 @@ public class HillshadeLayer extends MapTileLayer {
do {
String filename = cursor.getString(0);
long lastModified = cursor.getLong(1);
if(rs.containsKey(filename) && lastModified == fileModified.get(filename).longValue()) {
Long read = fileModified.get(filename);
if(rs.containsKey(filename) && read != null && lastModified == read.longValue()) {
int left = cursor.getInt(2);
int right = cursor.getInt(3);
int top = cursor.getInt(4);