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

Flow query fails with NPE if it returns no data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 23.0.0, 23.0.1
    • Fix Version/s: 23.0.2
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: