[ 
https://issues.apache.org/jira/browse/STANBOL-1342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rupert Westenthaler resolved STANBOL-1342.
------------------------------------------

    Resolution: Fixed

fixed with http://svn.apache.org/r1597063 in 0.12 and 
http://svn.apache.org/r1597068 in trunk

> 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)

Reply via email to