Open
Description
What steps will reproduce the problem?
1. Run this code:
Parser.toHtml("*[[Evoliucija]]\n", new SmartLinkResolver() {
public String resolve(String arg0) {
return "http://foo.com";
}
});
2. I get this exception:
Exception in thread "main" java.lang.NullPointerException
at
be.devijver.wikipedia.parser.ast.UnorderedListItem.toString(UnorderedListItem.ja
va:17)
at
be.devijver.wikipedia.parser.ast.parser.DefaultASTParser.doInvokeParseMethod(Def
aultASTParser.java:31)
at
be.devijver.wikipedia.parser.ast.parser.AbstractASTParser.invokeParseMethod(Abst
ractASTParser.java:350)
at
be.devijver.wikipedia.parser.ast.parser.AbstractASTParser.parseDocument(Abstract
ASTParser.java:62)
at
be.devijver.wikipedia.parser.ast.parser.AbstractASTParser.parse(AbstractASTParse
r.java:52)
at be.devijver.wikipedia.Parser.toHtml(Parser.java:32)
at be.devijver.wikipedia.TestBug.main(TestBug.java:9)
What version of the product are you using? On what operating system?
version 0.1 with Java 1.6.0
Please provide any additional information below.
Original issue reported on code.google.com by misc2...@danielnaber.de
on 15 Mar 2008 at 4:52