Changeset 15382 in josm


Ignore:
Timestamp:
2019-09-27T18:30:18+02:00 (5 years ago)
Author:
Don-vip
Message:

see #17304 - proper report of NPE debug details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionTypeCalculator.java

    r15076 r15382  
    1313import org.openstreetmap.josm.data.osm.Way;
    1414import org.openstreetmap.josm.gui.dialogs.relation.sort.WayConnectionType.Direction;
    15 import org.openstreetmap.josm.tools.JosmRuntimeException;
    1615import org.openstreetmap.josm.tools.bugreport.BugReport;
    1716
     
    4847            try {
    4948                lastWct = updateLinksFor(con, lastWct, i);
    50             } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException e) {
     49            } catch (RuntimeException e) {
    5150                int index = i;
    52                 throw BugReport.intercept(e).put("i", i).put("member", () -> members.get(index)).put("con", con);
     51                throw BugReport.intercept(e).put("i", i).put("member", () -> members.get(index)).put("con", con)
     52                    .put("members", members).put("lastWct", lastWct).put("firstGroupIdx", firstGroupIdx);
    5353            }
    5454        }
Note: See TracChangeset for help on using the changeset viewer.