Menu

#11 Code block marked as containing CSS (but actually contains XML) breaks processing

1.x
closed-fixed
None
5
2014-09-22
2014-09-12
Radu Coravu
No

In the XML I have a codeblock like:

    <codeblock outputclass="language-css"> &lt;p padding-left="20">....</codeblock>

which was marked by accident to be parsed using the XSLTHL CSS token marker although it contains XML, when applying the XSLT we obtain:

 [xslt] java.lang.NullPointerException
 [xslt]     at net.sf.xslthl.highlighters.NumberHighlighter.startsWith(NumberHighlighter.java:138)
 [xslt]     at net.sf.xslthl.MainHighlighter.highlight(MainHighlighter.java:100)
 [xslt]     at net.sf.xslthl.ConnectorSaxonEE.highlight(ConnectorSaxonEE.java:116)
 [xslt]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Discussion

  • Radu Coravu

    Radu Coravu - 2014-09-22
    • status: open --> closed-fixed
    • assigned_to: Radu Coravu
     
  • Radu Coravu

    Radu Coravu - 2014-09-22

    Guarded NPE + added TC

     

Log in to post a comment.

MongoDB Logo MongoDB