Just checked out jtidy CodeUpdateAndJava5 branch (1261) and got this exception:
java.lang.NullPointerException
at org.w3c.tidy.AttVal.isEvent(AttVal.java:212)
at org.w3c.tidy.PPrint.printAttribute(PPrint.java:1221)
at org.w3c.tidy.PPrint.printAttrs(PPrint.java:1253)
at org.w3c.tidy.PPrint.printTag(PPrint.java:1327)
at org.w3c.tidy.PPrint.printTree(PPrint.java:2050)
at org.w3c.tidy.PPrint.printTree(PPrint.java:2176)
at org.w3c.tidy.PPrint.printTree(PPrint.java:2176)
at org.w3c.tidy.PPrint.printTree(PPrint.java:2003)
at org.w3c.tidy.Tidy.pprint(Tidy.java:750)
at org.w3c.tidy.Tidy.pprint(Tidy.java:376)
To fix just changed AttVal.java: 212 from
AttrId atid = dict.id;
to
AttrId atid = getId();