changeset 819:11fd6557d0fc

UI: Cosmetics in log messages of CollectionView. flys-client/trunk@2477 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 09 Aug 2011 12:59:44 +0000
parents 2c004a40b1e1
children 912379835298
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Aug 09 10:21:15 2011 +0000
+++ b/flys-client/ChangeLog	Tue Aug 09 12:59:44 2011 +0000
@@ -1,3 +1,8 @@
+2011-08-09	Felix Wolfsteller	<felix.wolfsteller@intevation.de> 
+
+	* src/main/java/de/intevation/flys/client/client/ui/CollectionView.java:
+	  Changed log message for two distinct malconditions.
+
 2011-08-09	Felix Wolfsteller	<felix.wolfsteller@intevation.de> 
 
 	* src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Tue Aug 09 10:21:15 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Tue Aug 09 12:59:44 2011 +0000
@@ -600,10 +600,15 @@
         final Collection collection = getCollection();
         final Artifact master       = getArtifact();
 
-        if (master == null || recommendations == null) {
-            GWT.log("WARNING: Currently no master artifact set or no recom.");
+        if (master == null) {
+            GWT.log("WARNING: Currently no master artifact set.");
             return;
         }
+        if (recommendations == null) {
+            GWT.log("WARNING: Currently no recommendations.");
+            return;
+        }
+
 
         for (final Recommendation recommendation: recommendations) {
             if (collection.loadedRecommendation(recommendation)) {

http://dive4elements.wald.intevation.org