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

Topo map error popup: Load Label Map failed

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.8.7, 1.9.3
    • 17.0.0
    • Web UI - SVG Maps
    • Security Level: Default (Default Security Scheme)

    Description

      Customer gets an error message dialog every time he loads the topo map; see attached screenshot.

      I tracked the issue to the following method in org.opennms.web.map.db.ManagerDefaultImpl:

      public java.util.Map<String, Set<Integer>> getNodeLabelToMaps(String user) throws MapsException

      A string compare in this method was comparing a potentially null String object using label.equals(nodename), resulting in a NullPointerException when label is null and causing the method to bail, which results in the error dialog. Flipping around the comparison to nodename.equals(label) resolves the issue.

      Attachments

        Issue Links

          Activity

            People

              jeffg Jeff Gehlbach
              jeffg Jeff Gehlbach
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: