Menu

#125 goes wrong with <option> tag

open
5
2012-10-08
2004-07-15
Petr Kuzel
No

if the page/pagelet
contains an <option> tag (as in when using the
<select> tag, the following error is displayed:

Annotation: Exception occurred in Request
Processor
java.lang.NullPointerException
at
org.w3c.tidy.ParserImpl.XMLPreserveWhiteSpace
(Unknown Source)
at org.w3c.tidy.ParserImpl.parseXMLElement
(Unknown Source)
at org.w3c.tidy.ParserImpl.parseXMLElement
(Unknown Source)
at org.w3c.tidy.ParserImpl.parseXMLElement
(Unknown Source)
at org.w3c.tidy.ParserImpl.parseXMLElement
(Unknown Source)
at org.w3c.tidy.ParserImpl.parseXMLElement
(Unknown Source)
at org.w3c.tidy.ParserImpl.parseXMLElement
(Unknown Source)
at org.w3c.tidy.ParserImpl.parseXMLElement
(Unknown Source)
at org.w3c.tidy.ParserImpl.parseXMLElement
(Unknown Source)
at org.w3c.tidy.ParserImpl.parseXMLElement
(Unknown Source)
at org.w3c.tidy.ParserImpl.parseXMLElement
(Unknown Source)
at org.w3c.tidy.ParserImpl.parseXMLElement
(Unknown Source)
at
org.w3c.tidy.ParserImpl.parseXMLDocument(Unknown
Source)
at org.w3c.tidy.Tidy.parse(Unknown Source)
at org.w3c.tidy.Tidy.parse(Unknown Source)

last release (in 2001) was release 7

See also
http://tasklist.netbeans.org/issues/show_bug.cgi?id=38798

Discussion

  • fabrizio giustina

    Logged In: YES
    user_id=798060

    can you please upload a full document and tidy options which
    causes this NPE?

    thanks

     
  • Petr Kuzel

    Petr Kuzel - 2004-07-19

    Logged In: YES
    user_id=386690

    Called programatically:

            if (tidy == null) {
                tidy = new Tidy();
            }
            tidy.setOnlyErrors(true);
            tidy.setShowWarnings(true);
            tidy.setQuiet(true);
            // XXX Apparently JSP pages (at least those
    

    involving
    // JSF) need XML handling in order for JTidy not
    to choke on them
    tidy.setXmlTags(isXML || isJSP);

            PrintWriter output = new ReportWriter(this);
            tidy.setErrout(output);
            // Where do I direct its output? If it really obeys
            // setQuiet(true) it shouldn't matter...
            tidy.parse(input, System.err);
    

    I asked original reporter to provide his document.

     

Log in to post a comment.