mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 12:19:16 +00:00
findbugs issue addressed
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1269 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+6
-2
@@ -88,8 +88,12 @@ public class Projection extends SpelNodeImpl {
|
||||
}
|
||||
return new TypedValue(result,op.getTypeDescriptor());
|
||||
} else {
|
||||
if (operand==null && nullSafe) {
|
||||
return TypedValue.NULL_TYPED_VALUE;
|
||||
if (operand==null) {
|
||||
if (nullSafe) {
|
||||
return TypedValue.NULL_TYPED_VALUE;
|
||||
} else {
|
||||
throw new SpelEvaluationException(getStartPosition(),SpelMessages.PROJECTION_NOT_SUPPORTED_ON_TYPE, "null");
|
||||
}
|
||||
} else {
|
||||
throw new SpelEvaluationException(getStartPosition(),SpelMessages.PROJECTION_NOT_SUPPORTED_ON_TYPE, operand.getClass().getName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user