Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/OutputSettings.java @ 1464:c899a7ffdc8f
Extract and parse the output settings from describe document and add settings
objects to collection.
flys-client/trunk@3503 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 20 Dec 2011 15:32:08 +0000 |
parents | 8da36efc839a |
children | 3304608baf35 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/OutputSettings.java Tue Dec 20 15:22:42 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/OutputSettings.java Tue Dec 20 15:32:08 2011 +0000 @@ -16,7 +16,6 @@ protected HashMap<String, List<Property> > categories; - public OutputSettings() { this.categories = new HashMap<String, List<Property> >(); } @@ -39,6 +38,9 @@ public void setSettings(String category, List<Property> settings) { + if (this.categories == null) { + this.categories = new HashMap<String, List<Property> >(); + } this.categories.put(category, settings); }