RESOLVED - BATCH-900: Retreive null values from the ExecutionContext
This commit is contained in:
@@ -228,8 +228,13 @@ public class ExecutionContext implements Serializable {
|
||||
* @return The value represented by the given key
|
||||
*/
|
||||
public Object get(String key) {
|
||||
|
||||
return map.get(key);
|
||||
Object value = map.get(key);
|
||||
if (value == Constants.NULL) {
|
||||
return null;
|
||||
}
|
||||
else {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -116,6 +116,7 @@ public class ExecutionContextTests {
|
||||
public void testPutNull(){
|
||||
//putting null should work
|
||||
context.put("1", null);
|
||||
assertNull(context.get("1"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user