Changeset 12925 in josm for trunk/src/org
- Timestamp:
- 2017-10-04T23:39:08+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r12924 r12925 1421 1421 PluginProxy err = null; 1422 1422 List<StackTraceElement> stack = new ArrayList<>(); 1423 Set<Throwable> seen = new HashSet<>(); 1423 1424 Throwable current = ex; 1424 1425 while (current != null) { 1426 seen.add(current); 1425 1427 stack.addAll(Arrays.asList(current.getStackTrace())); 1426 current = current.getCause(); 1428 Throwable cause = current.getCause(); 1429 if (cause != null && seen.contains(cause)) { 1430 break; // circular refernce 1431 } 1432 current = cause; 1427 1433 } 1428 1434
Note:
See TracChangeset
for help on using the changeset viewer.