Ignore:
Timestamp:
2017-03-31T00:08:09+02:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:S2259 - Null pointers should not be dereferenced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r11397 r11796  
    403403            return true;
    404404        }
    405         if (hops > 0) {
     405        if (hops > 0 && visited != null) {
    406406            visited.add(this);
    407407            for (final Way w : Utils.filteredCollection(this.getReferrers(), Way.class)) {
Note: See TracChangeset for help on using the changeset viewer.