BATCH-483: putting null in an ExecutionContext no longer throws an exception. Also added a unit test.
This commit is contained in:
@@ -64,7 +64,9 @@ public class ExecutionContext {
|
||||
}
|
||||
|
||||
public void put(String key, Object value) {
|
||||
Assert.isInstanceOf(Serializable.class, value, "Value: [ " + value + "must be serializable.");
|
||||
if(value != null){
|
||||
Assert.isInstanceOf(Serializable.class, value, "Value: [ " + value + "must be serializable.");
|
||||
}
|
||||
dirty = true;
|
||||
map.put(key, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user