BATCH-483: putting null in an ExecutionContext no longer throws an exception. Also added a unit test.

This commit is contained in:
lucasward
2008-03-18 19:12:36 +00:00
parent 94b5615245
commit e5c26328bf
2 changed files with 8 additions and 1 deletions

View File

@@ -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);
}