Index: applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbLayer.java
===================================================================
--- applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbLayer.java	(revision 12475)
+++ applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbLayer.java	(revision 12476)
@@ -111,5 +111,8 @@
 	@Override
 	public void paint(Graphics g, MapView mv) {
-		for (Node node : data.nodes) {
+	    Object[] nodes = data.nodes.toArray();
+		for (int i = 0; i < nodes.length; i++) {
+		    Node node = (Node) nodes[i];
+		    
 			// don't paint deleted nodes
 			if(node.deleted) {
@@ -148,6 +151,6 @@
 					Rectangle2D fontBounds = null;
 					String[] lines = desc.split("<hr>");
-					for (int i = 0; i < lines.length; i++) {
-						String line = lines[i];
+					for (int j = 0; j < lines.length; j++) {
+						String line = lines[j];
 						fontBounds = g.getFontMetrics().getStringBounds(line, g);
 						tooltipWidth = Math.max(tooltipWidth, (int)fontBounds.getWidth());
