mirror of
https://github.com/apache/xmlgraphics-fop.git
synced 2024-09-14 00:01:49 +02:00
Avoid NPE if intermediate XML was generated in accessibility mode but not the PDF
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@828754 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
444ea54c14
commit
f656784237
@ -112,7 +112,8 @@ public class PDFDocumentNavigationHandler implements IFDocumentNavigationHandler
|
||||
targetRect2D, pdfAction);
|
||||
if (pdfLink != null) {
|
||||
String ptr = link.getAction().getStructurePointer();
|
||||
if (ptr != null && ptr.length() > 0) {
|
||||
if (documentHandler.getUserAgent().isAccessibilityEnabled()
|
||||
&& ptr != null && ptr.length() > 0) {
|
||||
documentHandler.getLogicalStructureHandler().addLinkContentItem(pdfLink, ptr);
|
||||
}
|
||||
documentHandler.currentPage.addAnnotation(pdfLink);
|
||||
|
Loading…
Reference in New Issue
Block a user