quetzai / wikimodel

Automatically exported from code.google.com/p/wikimodel
0 stars 0 forks source link

InternalWikiScannerContext#endQuot() raises java.lang.NullPointerException #183

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
*What steps will reproduce the problem?
1. Process the page provided as an attachment with the WEM engine

*What is the expected output? What do you see instead?
The fQuotBuilder object is null while the endQuot() method attempts to call 
it's alignContext() 
method, therefore raising the exception. 
We believe this is due to the fact that the condition in the beginQuot() method 
which initializes 
fQuotBuilder, does not match the one allowing it's use in endQuot(). 
We made them match (cf. attached patchfile) and it appears to eliminate the 
issue

*What version of the product are you using? On what operating system?

We use the latest version checked out from the SVN repository. We use it on MAC 
OSX Snow 
Leopard with the 1.6 JVM.

*Please provide any additional information below.

The input data is an extract of the french Wikipedia export collected through 
MWDumper. We use 
the WEM component of your project in order to generate a CAS data structure to 
be supplied to 
the Apache UIMA framework. We encounter the problem with a particular page 
supplied as an 
attachement.

Original issue reported on code.google.com by Maxime.B...@gmail.com on 4 Jun 2010 at 2:56

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed the NPE in revision 485.
Not using patch, because JUnit tests would be broken then.
But inserting a guarding if-clause to avoid NPE.

Original comment by mki...@portolancs.com on 23 Aug 2010 at 10:01