Index: trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java	(revision 6330)
+++ trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java	(revision 6331)
@@ -34,10 +34,8 @@
  *
  * @author frsantos
+ * @since 3669
  */
-public class ValidateUploadHook implements UploadHook
-{
-    /** Serializable ID */
-    private static final long serialVersionUID = -2304521273582574603L;
-
+public class ValidateUploadHook implements UploadHook {
+    
     /**
      * Validate the modified data before uploading
@@ -62,9 +60,7 @@
             test.endTest();
             if (Main.pref.getBoolean(ValidatorPreference.PREF_OTHER, false) &&
-                Main.pref.getBoolean(ValidatorPreference.PREF_OTHER_UPLOAD, false))
-            {
-                errors.addAll( test.getErrors() );
-            }
-            else {
+                Main.pref.getBoolean(ValidatorPreference.PREF_OTHER_UPLOAD, false)) {
+                errors.addAll(test.getErrors());
+            } else {
                 for (TestError e : test.getErrors()) {
                     if (e.getSeverity() != Severity.OTHER) {
@@ -75,4 +71,5 @@
         }
         tests = null;
+        Main.map.validatorDialog.tree.setErrors(errors);
         if (errors == null || errors.isEmpty())
             return true;
@@ -141,8 +138,7 @@
         ed.showDialog();
 
-        if(ed.getValue() != 1) {
+        if (ed.getValue() != 1) {
             OsmValidator.initializeErrorLayer();
             Main.map.validatorDialog.unfurlDialog();
-            Main.map.validatorDialog.tree.setErrors(errors);
             Main.main.getCurrentDataSet().fireSelectionChanged();
             return false;
