changeset 373:6072f84608c2

Added modifications to last commit (forgot to commit the modified class). artifacts/trunk@3826 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 30 Jan 2012 13:15:52 +0000
parents 72e4f03bf4a0
children 5420b96dd0b3
files artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java	Mon Jan 30 13:15:12 2012 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java	Mon Jan 30 13:15:52 2012 +0000
@@ -149,7 +149,11 @@
      * @return a data object of the state or null if no such data object exists.
      */
     public StateData getData(String name) {
-        return data.get(name);
+        if (data != null) {
+            return data.get(name);
+        }
+
+        return null;
     }
 
 

http://dive4elements.wald.intevation.org