comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java @ 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 6431b7efe240
children fd32dc33a24c
comparison
equal deleted inserted replaced
372:72e4f03bf4a0 373:6072f84608c2
147 * @param name The name of the data object. 147 * @param name The name of the data object.
148 * 148 *
149 * @return a data object of the state or null if no such data object exists. 149 * @return a data object of the state or null if no such data object exists.
150 */ 150 */
151 public StateData getData(String name) { 151 public StateData getData(String name) {
152 return data.get(name); 152 if (data != null) {
153 return data.get(name);
154 }
155
156 return null;
153 } 157 }
154 158
155 159
156 /** 160 /**
157 * Add new data to the state. NOTE: If there is already an object existing 161 * Add new data to the state. NOTE: If there is already an object existing

http://dive4elements.wald.intevation.org