aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/area/PageViewport.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/area/PageViewport.java')
-rw-r--r--src/org/apache/fop/area/PageViewport.java20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/org/apache/fop/area/PageViewport.java b/src/org/apache/fop/area/PageViewport.java
index e5422658b..e1e15dba0 100644
--- a/src/org/apache/fop/area/PageViewport.java
+++ b/src/org/apache/fop/area/PageViewport.java
@@ -139,17 +139,21 @@ public class PageViewport implements Resolveable, Cloneable {
}
pendingResolved.put(id, pages);
} else {
- List todo = (List)unresolved.get(id);
- if (todo != null) {
- for (int count = 0; count < todo.size(); count++) {
- Resolveable res = (Resolveable)todo.get(count);
- res.resolve(id, pages);
+ if (unresolved != null) {
+ List todo = (List)unresolved.get(id);
+ if (todo != null) {
+ for (int count = 0; count < todo.size(); count++) {
+ Resolveable res = (Resolveable)todo.get(count);
+ res.resolve(id, pages);
+ }
}
}
}
- unresolved.remove(id);
- if (unresolved.isEmpty()) {
- unresolved = null;
+ if (unresolved != null) {
+ unresolved.remove(id);
+ if (unresolved.isEmpty()) {
+ unresolved = null;
+ }
}
}