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

CommitIndexTask is broken if no params are set

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1, 6.0
    • Component/s: modules/benchmark
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      If you put a CommitIndex in a benchmark algorithm with no params, you get NPE from IW.setCommitData, because you are not allowed to pass null. It's a trivial fix - CommitIndexTask should call setCommitData only if commitData is not null.

        Attachments

          Activity

            People

            • Assignee:
              shaie Shai Erera
              Reporter:
              shaie Shai Erera
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: