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

SimpleNaiveBayesDocumentClassifier throws NPE if no docs have the class field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.6
    • 7.1
    • modules/classification
    • None
    • New

    Description

      As discussed on the solr-user@ list the SNBDC throws a NPE as the potential null value resulting from MultiFields.getTerms(indexReader, classFieldName) is not properly handled.

      Attachments

        Activity

          People

            teofili Tommaso Teofili
            teofili Tommaso Teofili
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: