Index: trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java	(revision 4820)
+++ trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java	(revision 4821)
@@ -83,5 +83,5 @@
             OsmPrimitive n = new Node(Long.parseLong(m.group(1)));
             for (String s : m.group(2).split(",")) {
-                refs.add(new Relation(Long.parseLong(m.group(2))));
+                refs.add(new Relation(Long.parseLong(s)));
             }
             return Pair.create(n, refs);
@@ -91,5 +91,5 @@
             OsmPrimitive n = new Node(Long.parseLong(m.group(1)));
             for (String s : m.group(2).split(",")) {
-                refs.add(new Way(Long.parseLong(m.group(2))));
+                refs.add(new Way(Long.parseLong(s)));
             }
             return Pair.create(n, refs);
@@ -99,5 +99,5 @@
             OsmPrimitive n = new Relation(Long.parseLong(m.group(1)));
             for (String s : m.group(2).split(",")) {
-                refs.add(new Relation(Long.parseLong(m.group(2))));
+                refs.add(new Relation(Long.parseLong(s)));
             }
             return Pair.create(n, refs);
@@ -107,5 +107,5 @@
             OsmPrimitive n = new Way(Long.parseLong(m.group(1)));
             for (String s : m.group(2).split(",")) {
-                refs.add(new Relation(Long.parseLong(m.group(2))));
+                refs.add(new Relation(Long.parseLong(s)));
             }
             return Pair.create(n, refs);
@@ -115,5 +115,5 @@
             OsmPrimitive n = new Way(Long.parseLong(m.group(1)));
             for (String s : m.group(2).split(",")) {
-                refs.add(new Node(Long.parseLong(m.group(2))));
+                refs.add(new Node(Long.parseLong(s)));
             }
             return Pair.create(n, refs);
