Index: trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java	(revision 4726)
+++ trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java	(revision 4727)
@@ -1010,5 +1010,5 @@
                         }
                     }
-            );
+                    );
         }
 
@@ -1099,4 +1099,5 @@
         private BufferedReader reader;
         private boolean canceled;
+        private final List<ExtendedSourceEntry> sources = new ArrayList<ExtendedSourceEntry>();
 
         public SourceLoader(String url) {
@@ -1117,6 +1118,4 @@
         }
 
-        @Override
-        protected void finish() {}
 
         protected void warn(Exception e) {
@@ -1131,10 +1130,9 @@
                     JOptionPane.ERROR_MESSAGE,
                     ht(getStr(I18nString.FAILED_TO_LOAD_SOURCES_FROM_HELP_TOPIC))
-            );
+                    );
         }
 
         @Override
         protected void realRun() throws SAXException, IOException, OsmTransferException {
-            LinkedList<ExtendedSourceEntry> sources = new LinkedList<ExtendedSourceEntry>();
             String lang = LanguageInfo.getLanguageCodeXML();
             try {
@@ -1210,4 +1208,8 @@
                 return;
             }
+        }
+
+        @Override
+        protected void finish() {
             availableSourcesModel.setSources(sources);
         }
@@ -1285,5 +1287,5 @@
                         }
                     }
-            );
+                    );
         }
 
