diff gnv-artifacts/src/main/java/de/intevation/gnv/math/AttributedXYColumns.java @ 480:211cad2fb5ba

Rebased "Horizonalschnitte" to own state class to break from the not well fitting TimeSeriesOutputState. gnv-artifacts/trunk@552 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 17 Jan 2010 12:22:56 +0000
parents f5a041000357
children 9a828e5a2390
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/math/AttributedXYColumns.java	Fri Jan 15 20:39:30 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/math/AttributedXYColumns.java	Sun Jan 17 12:22:56 2010 +0000
@@ -9,8 +9,8 @@
 import de.intevation.gnv.jfreechart.PolygonDataset; 
 
 /**
- *  @author Ingo Weinzierl
- *  @author Sascha L. Teichmann
+ *  @author Ingo Weinzierl      (ingo.weinzierl@intevation.de)
+ *  @author Sascha L. Teichmann (sascha.teichmann@intevation.de)
  */
 public class AttributedXYColumns
 implements   Serializable
@@ -33,14 +33,15 @@
     }
 
     public Object getAttribute(Object key) {
-        return attributes.get(key);
+        return attributes != null
+            ? attributes.get(key)
+            : null;
     }
 
     public void setAttribute(Object key, Object value) {
         if (attributes == null) {
             attributes = new HashMap();
         }
-
         attributes.put(key, value);
     }
 

http://dive4elements.wald.intevation.org