Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-3781

Another incomplete fix for the NPE bugs in ParallelReader.java

Details

    • 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(); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            guangtai Guangtai Liang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified