# HG changeset patch # User Felix Wolfsteller # Date 1314191842 0 # Node ID 18fc7afe025134ccc575b700a48ce756d644b413 # Parent 6a1cd38e6e18a6b9e45a22834af7cbc28e60b4c6 Ensure list of recommendations is non-null after construction of DefaultCollection. flys-client/trunk@2560 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 6a1cd38e6e18 -r 18fc7afe0251 flys-client/ChangeLog --- a/flys-client/ChangeLog Wed Aug 24 13:14:42 2011 +0000 +++ b/flys-client/ChangeLog Wed Aug 24 13:17:22 2011 +0000 @@ -1,3 +1,8 @@ +2011-08-24 Felix Wolfsteller + + * src/main/java/de/intevation/flys/client/shared/model/DefaultCollection.java: + Ensure list of recommendations is non-null after construction. + 2011-08-24 Felix Wolfsteller * src/main/java/de/intevation/flys/client/shared/model/DefaultRecommendation.java, diff -r 6a1cd38e6e18 -r 18fc7afe0251 flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultCollection.java --- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultCollection.java Wed Aug 24 13:14:42 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultCollection.java Wed Aug 24 13:17:22 2011 +0000 @@ -47,6 +47,7 @@ this.ttl = ttl; this.items = new ArrayList(); this.themeLists = new HashMap(); + this.recommendations = new ArrayList(); } @@ -68,9 +69,8 @@ List recommendations, Map themeLists) { - this(uuid, ttl, new ArrayList()); - this.recommendations = recommendations; - this.themeLists = themeLists; + this(uuid, ttl, recommendations); + this.themeLists = themeLists; }