You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Rupert Westenthaler (JIRA)" <ji...@apache.org> on 2014/01/31 15:02:12 UTC

[jira] [Created] (STANBOL-1272) NPE in compareTo(..) calls if the EntityCoMentionEngine

Rupert Westenthaler created STANBOL-1272:
--------------------------------------------

             Summary: NPE in compareTo(..) calls if the EntityCoMentionEngine
                 Key: STANBOL-1272
                 URL: https://issues.apache.org/jira/browse/STANBOL-1272
             Project: Stanbol
          Issue Type: Bug
          Components: Enhancement Engines
    Affects Versions: 0.12.0
            Reporter: Rupert Westenthaler
            Assignee: Rupert Westenthaler


The EntityCoMention engine can throw NPE on several different locations of some of the processed Enhancements do not have fise:confidence values.

Here an example exception:

org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl Reported Exception: java.lang.NullPointerException
    at java.lang.Double.compareTo(Double.java:950)
    at org.apache.stanbol.enhancer.engines.entitycomention.EntityCoMentionEngine.writeComentions(EntityCoMentionEngine.java:475)
    at org.apache.stanbol.enhancer.engines.entitycomention.EntityCoMentionEngine.computeEnhancements(EntityCoMentionEngine.java:318)
    at org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler.processEvent(EnhancementJobHandler.java:271)
    [...]

To fix this all calls to Double.compareTo(..) need to ensure that the parsed value MUST NOT be NULL




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)