aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core
diff options
context:
space:
mode:
Diffstat (limited to 'fop-core')
-rw-r--r--fop-core/src/main/java/org/apache/fop/area/PageViewport.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/area/PageViewport.java b/fop-core/src/main/java/org/apache/fop/area/PageViewport.java
index f1cd95721..a7353d36a 100644
--- a/fop-core/src/main/java/org/apache/fop/area/PageViewport.java
+++ b/fop-core/src/main/java/org/apache/fop/area/PageViewport.java
@@ -284,7 +284,9 @@ public class PageViewport extends AreaTreeObject implements Resolvable {
*/
public void replace(PageViewport oldViewPort) {
this.idFirsts.addAll(oldViewPort.idFirsts);
- this.unresolvedIDRefs.putAll(oldViewPort.unresolvedIDRefs);
+ if (oldViewPort.unresolvedIDRefs != null) {
+ this.unresolvedIDRefs.putAll(oldViewPort.unresolvedIDRefs);
+ }
if (oldViewPort.pendingResolved != null) {
this.pendingResolved.putAll(oldViewPort.pendingResolved);
}