Rupert Westenthaler created STANBOL-1342:
--------------------------------------------
Summary: NPE in EntityCoMentionEngine if no LabelTokenizer is
available for the language of the processed Text
Key: STANBOL-1342
URL: https://issues.apache.org/jira/browse/STANBOL-1342
Project: Stanbol
Issue Type: Bug
Components: Enhancement Engines
Affects Versions: 0.12.0
Reporter: Rupert Westenthaler
Assignee: Rupert Westenthaler
Fix For: 1.0.0, 0.12.1
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
--
This message was sent by Atlassian JIRA
(v6.2#6252)