Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-10530

Flow query fails with NPE if it returns no data

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • 23.0.0, 23.0.1
    • 23.0.2
    • None
    • Security Level: Default (Default Security Scheme)
    • None
    • Horizon - January 23rd 2019

    Description

      NPE was found here:
      https://github.com/OpenNMS/opennms/blob/10cb6fa1d7f3309aee8259d7ac5b5448cce38560/features/flows/elastic/src/main/java/org/opennms/netmgt/flows/elastic/ElasticFlowRepository.java#L389

      Query output looked like:

      {"took":0,"timed_out":false,"_shards":{"total":0,"successful":0,"skipped":0,"failed":0},"hits":{"total":0,"max_score":0.0,"hits":[]}}
      

      Attachments

        Activity

          People

            j-white Jesse White
            j-white Jesse White
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: