summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-07 11:50:42 -0700
committerKeith Packard <keithp@keithp.com>2014-06-07 12:34:15 -0700
commit9f2189e0b99aa32b788ecb4576dcb9bcc926f4e2 (patch)
treedffc6c02a2caca13c3010c0afda6b60872e8738b
parent611dc26ab4a3ee303c0253698b1e12931aa3644f (diff)
altosuilib: Fix crash when initializing site map cache
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosuilib/AltosSiteMapCache.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/altosuilib/AltosSiteMapCache.java b/altosuilib/AltosSiteMapCache.java
index 3e08e1b3..51778ce1 100644
--- a/altosuilib/AltosSiteMapCache.java
+++ b/altosuilib/AltosSiteMapCache.java
@@ -158,7 +158,7 @@ public class AltosSiteMapCache {
for (int i = 0; i < cache_size; i++) {
if (i < new_size)
new_images[i] = images[i];
- else
+ else if (images[i] != null)
images[i].flush();
}
images = new_images;