Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-1342

NPE in EntityCoMentionEngine if no LabelTokenizer is available for the language of the processed Text

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 1.0.0, 0.12.1
    • Enhancement Engines
    • None

    Description

      The ContentItemMentionBuilder#registerTextAnnotation(..) currently runs into a NPE in case the parsed LabelTokenizer does not support the language of the in-memory entity index.

      This indicates two problems

      (1) the registerTextAnnotation(..) should not throw a NPE but instead check if the tokens are NULL
      (2) the fact that the LabelTokenizer indicates that the wrong service is injected to the EntityCoMentionEngine. Because the MainLabelTokenizer - that registers itself with a service.ranking=Intever.MAX_VALUE - would not return NULL

      Attachments

        Activity

          People

            rwesten Rupert Westenthaler
            rwesten Rupert Westenthaler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: