Index: trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java	(revision 2912)
+++ trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java	(revision 2914)
@@ -222,7 +222,7 @@
             model.setSelectedRelations(Collections.singletonList(relation));
             Integer i = model.getRelationIndex(relation);
-            if (i == null)
-                throw new AssertionError(); /* the relation list should contain *all* relations */
-            displaylist.scrollRectToVisible(displaylist.getCellBounds(i, i));
+            if (i != null) { // Not all relations have to be in the list (for example when the relation list is hidden, it's not updated with new relations)
+                displaylist.scrollRectToVisible(displaylist.getCellBounds(i, i));
+            }
         }
     }
@@ -693,14 +693,13 @@
          * Returns the index of the relation
          *
-         * @return index of relation (null if it cannot be found) 
+         * @return index of relation (null if it cannot be found)
          */
         public Integer getRelationIndex(Relation rel) {
             int i = relations.indexOf(rel);
-            if (i<0) {
+            if (i<0)
                 return null;
-            }
             return i;
         }
-            
+
     }
 
