You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Paul Katz (Jira)" <ji...@apache.org> on 2021/11/18 05:45:00 UTC

[jira] [Created] (FOP-3035) NullPointerException on combination of ZWSP, NBSP and

Paul Katz created FOP-3035:
------------------------------

             Summary: NullPointerException on combination of ZWSP, NBSP and <fo:inline>
                 Key: FOP-3035
                 URL: https://issues.apache.org/jira/browse/FOP-3035
             Project: FOP
          Issue Type: Bug
          Components: renderer/pdf
    Affects Versions: 2.6
         Environment: Linux SLES 11 running on Intel x86_64
            Reporter: Paul Katz
         Attachments: bad.fo, fop-config.xml, fop.log

The following line in my XSL:FO reliably causes a NPE when generating a PDF:

 
{code:java}
<fo:inline>&#x200B;<fo:inline>&#xA0;</fo:inline>x</fo:inline> {code}
Removing any single element of this line makes the NPE go away:

 
 * The outer <fo:inline>
 * The Zero-Width Space
 * The inner <fo:inline>
 * The Non-Breaking Space
 * The "x" text

(My actual document has more content within the outer <fo:inline>; I just removed everything else to provide the minimum content needed to reproduce the NPE.)

The NPE is reported as:

 
{code:java}
SEVERE: Exception
org.apache.fop.apps.FOPException
java.lang.NullPointerException
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
        at org.apache.fop.cli.Main.startFOP(Main.java:183)
        at org.apache.fop.cli.Main.main(Main.java:214)
Caused by: java.lang.NullPointerException
... {code}
 

The complete FOP output is attached as fop.log.

The complete input XSL:F0 is attached as bad.fo

My command line is:

 
{noformat}
fop/fop-2.6/fop/fop -c WD/fop-config.xml -fo bad.fo bad.pdf 2>&1 | tee fop.log{noformat}
My FOP config file is attached as fop-config.xml.

 

 

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)