Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11231

NullPointerException in TikaLanguageIdentifierUpdateProcessor.getExpectedSize when performing language identification using unset fields

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.6, 7.0
    • Fix Version/s: 7.2, 8.0
    • Component/s: contrib - LangId
    • Labels:
      None

      Description

      If I configure the TikaLanguageIdentifierUpdateProcessorFactory that includes a `langid.fl` that isn't set on the document, I get a NPE:

      {{java.lang.NullPointerException
      at org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessor.getExpectedSize(TikaLanguageIdentifierUpdateProcessor.java:116)
      at org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessor.concatFields(TikaLanguageIdentifierUpdateProcessor.java:76)
      at org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessor.detectLanguage(TikaLanguageIdentifierUpdateProcessor.java:53)
      at org.apache.solr.update.processor.LanguageIdentifierUpdateProcessor.process(LanguageIdentifierUpdateProcessor.java:219)}}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                steve_rowe Steve Rowe
                Reporter:
                cbeer Chris Beer
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: