aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/pdf
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2013-04-08 11:51:52 +0000
committerVincent Hennebert <vhennebert@apache.org>2013-04-08 11:51:52 +0000
commitce39d4c2fb899be5d8d705fe72e0153fde21e592 (patch)
treec16721a9a7f5313aaadafb0529370d278067eaa4 /src/java/org/apache/fop/pdf
parente3c9f13598dc3bbcbe1ea34920972910625567c0 (diff)
downloadxmlgraphics-fop-ce39d4c2fb899be5d8d705fe72e0153fde21e592.tar.gz
xmlgraphics-fop-ce39d4c2fb899be5d8d705fe72e0153fde21e592.zip
FOP #2234: NPE when rendering a document with markers and accessibility is enabled
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1465599 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/pdf')
-rw-r--r--src/java/org/apache/fop/pdf/PDFStructElem.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFStructElem.java b/src/java/org/apache/fop/pdf/PDFStructElem.java
index 8250318d7..badf53060 100644
--- a/src/java/org/apache/fop/pdf/PDFStructElem.java
+++ b/src/java/org/apache/fop/pdf/PDFStructElem.java
@@ -37,7 +37,7 @@ public class PDFStructElem extends StructureHierarchyMember
private StructureType structureType;
- private PDFStructElem parentElement;
+ protected PDFStructElem parentElement;
/**
* Elements to be added to the kids array.
@@ -231,6 +231,9 @@ public class PDFStructElem extends StructureHierarchyMember
textBuffer.append(' ');
}
Object obj = kids.get(i);
+ if (obj instanceof PDFStructElem) {
+ ((PDFStructElem) obj).setParent(parentElement);
+ }
formatObject(obj, out, textBuffer);
}
}