Index: trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java	(revision 2491)
+++ trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java	(revision 2492)
@@ -666,5 +666,5 @@
         public synchronized void setSelectedRelations(List<Relation> sel) {
             selectionModel.clearSelection();
-            if (sel == null || sel.isEmpty())
+            if (sel == null || sel.isEmpty() || relations == null)
                 return;
             for (Relation r: sel) {
