From: SourceForge.net <no...@so...> - 2011-02-15 16:22:04
|
Bugs item #3182455, was opened at 2011-02-15 16:22 Message generated for change (Tracker Item Submitted) made by lyncher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=3182455&group_id=13153 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Renato (lyncher) Assigned to: Nobody/Anonymous (nobody) Summary: NullPointerException after getAttrByName Initial Comment: Just checked out jtidy CodeUpdateAndJava5 branch (1261) and got this exception: java.lang.NullPointerException at org.w3c.tidy.Tidy.parse(Tidy.java:518) at org.w3c.tidy.Tidy.parse(Tidy.java:315) at org.w3c.tidy.Tidy.parseDOM(Tidy.java:355) In Tidy.java line 518 the code should be protected like: if ((fpi != null) && fpi.hasValue()) According to the docs at: http://jtidy.sourceforge.net/apidocs/org/w3c/tidy/Node.html#getAttrByName(java.lang.String)... getAttrByName returns null if attribute is not present. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=3182455&group_id=13153 |