Ticket #3687: npe-in-remove.patch

File npe-in-remove.patch, 598 bytes (added by hansendc, 16 years ago)
  • src/org/openstreetmap/josm/data/osm/QuadBuckets.java

     
    886886    public boolean remove(T n)
    887887    {
    888888        QBLevel bucket = root.find_exact(n);
    889         if (!bucket.isLeaf())
    890             abort("found branch where leaf expected");
     889        if (bucket == null)
     890            return false;
    891891        boolean ret = bucket.remove_content(n);
    892892        return ret;
    893893    }