for Keith and his binder: fault in support for maps (if attempt made to reference into null map) and for general objects, e.g. foo.bar if foo was null, attempt to dynamically build foo.

This commit is contained in:
Andy Clement
2009-07-10 19:43:50 +00:00
parent e3e34b04d4
commit 3788a84b8e

View File

@@ -217,8 +217,8 @@ public class ExpressionState {
return (configuration & SpelExpressionParserConfiguration.GrowListsOnIndexBeyondSize)!=0;
}
public boolean configuredToCreateCollection() {
return (configuration & SpelExpressionParserConfiguration.CreateListsOnAttemptToIndexIntoNull)!=0;
public boolean configuredToCreateCollectionOrMap() {
return (configuration & SpelExpressionParserConfiguration.CreateObjectIfAttemptToReferenceNull)!=0;
}
}