Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0
-
None
-
New
Description
The fix revision 407851 was aimed to remove an NPE bug ("fix NPE and deletion bugs in ParallelReader: LUCENE-561") on the value of "termDocs" in the methods "next", "read", "skipTo", "close" of the file "/lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java
" , but it is incomplete.
Since the value "termDocs" could be null during the runtime execution, its value should also be null-checked before being dereferenced in other methods.
The buggy code locations the same fix needs to be applied at are as bellows:
Line 574, 575 of the methods "doc()" , and "freq":
public int doc()
{ return termDocs.doc(); }public int freq()
{ return termDocs.freq(); }