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

NPE in compareTo(..) calls if the EntityCoMentionEngine

    XMLWordPrintableJSON

Details

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

    Description

      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

      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: