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

Some equals methods do not check for null argument

Details

    • New, Patch Available

    Description

      The equals methods in the following classes do not check for a null argument and thus would incorrectly fail with a null pointer exception if passed null:

      • org.apache.lucene.index.SegmentInfo
      • org.apache.lucene.search.function.CustomScoreQuery
      • org.apache.lucene.search.function.OrdFieldSource
      • org.apache.lucene.search.function.ReverseOrdFieldSource
      • org.apache.lucene.search.function.ValueSourceQuery

      If a null parameter is passed to equals() then false should be returned.

      Attachments

        Activity

          People

            shaie Shai Erera
            ddillard David Dillard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment