diff options
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/render/pdf/PDFImageHandlerRawJPEG.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/pdf/PDFImageHandlerRawJPEG.java b/src/java/org/apache/fop/render/pdf/PDFImageHandlerRawJPEG.java index 925d63bc5..fe3a00aa8 100644 --- a/src/java/org/apache/fop/render/pdf/PDFImageHandlerRawJPEG.java +++ b/src/java/org/apache/fop/render/pdf/PDFImageHandlerRawJPEG.java @@ -84,7 +84,7 @@ public class PDFImageHandlerRawJPEG implements PDFImageHandler, ImageHandler { float h = (float)pos.getHeight() / 1000f; if (context.getUserAgent().isAccessibilityEnabled()) { String structElemType = pdfContext.getStructElemType(); - if (structElemType.length() > 0) { + if (structElemType != null && structElemType.length() > 0) { int sequenceNum = pdfContext.getSequenceNum(); generator.placeImage(x, y, w, h, xobj, structElemType, sequenceNum); } else { |