Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » [WikiText] Error while parsing more then one MediaWiki strings
[WikiText] Error while parsing more then one MediaWiki strings [message #1016515] Wed, 06 March 2013 18:05 Go to next message
Marek Małkiewicz is currently offline Marek MałkiewiczFriend
Messages: 3
Registered: March 2013
Junior Member
I have the following code:

                StringWriter writer = new StringWriter();
		HtmlDocumentBuilder builder = new HtmlDocumentBuilder(writer);
		MediaWikiLanguage lang = new MediaWikiLanguage();
		MarkupParser parser = new MarkupParser(lang, builder);

When parsing second text I get NullPointerException:
Exception in thread "main" java.lang.NullPointerException
	at org.eclipse.mylyn.wikitext.core.util.DefaultXmlStreamWriter.writeStartElement(
	at org.eclipse.mylyn.wikitext.core.parser.builder.HtmlDocumentBuilder.beginBlock(
	at org.eclipse.mylyn.internal.wikitext.mediawiki.core.block.ParagraphBlock.processLineContent(
	at org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage.processContent(
	at org.eclipse.mylyn.internal.wikitext.mediawiki.core.AbstractMediaWikiLanguage.processContent(
	at org.eclipse.mylyn.wikitext.core.parser.MarkupParser.parse(
	at org.eclipse.mylyn.wikitext.core.parser.MarkupParser.parse(
	at html.HtmlLinks.setText(
	at javax.swing.JEditorPane.<init>(Unknown Source)
	at html.HtmlLinks.<init>(
	at html.HtmlLinks.main(

There is no problem when I create new objects each time I want to parse some text. But it's a waste of resources...
Re: [WikiText] Error while parsing more then one MediaWiki strings [message #1062368 is a reply to message #1016515] Fri, 07 June 2013 12:29 Go to previous message
Tomasz Zarna is currently offline Tomasz ZarnaFriend
Messages: 172
Registered: July 2009
Senior Member
Hi Marek,

Why don't you file a bug against Mylyn Docs and describe your case there? You should be even able to provide a failing test case.

Previous Topic:Juno SR2 deleted my task list
Next Topic:WikiText Maven artifact availability?
Goto Forum:

Current Time: Tue May 21 05:01:48 GMT 2024

Powered by FUDForum. Page generated in 0.17233 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top