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

Topo map error popup: Load Label Map failed

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.7, 1.9.3
    • Fix Version/s: Backlog
    • Component/s: Web UI - SVG Maps
    • Security Level: Default (Default Security Scheme)
    • Labels:

      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

              • Assignee:
                jeffg Jeff Gehlbach
                Reporter:
                jeffg Jeff Gehlbach
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: