findbugs issue addressed
This commit is contained in:
parent
e5fea54aea
commit
1746cc76d1
|
@ -88,8 +88,12 @@ public class Projection extends SpelNodeImpl {
|
||||||
}
|
}
|
||||||
return new TypedValue(result,op.getTypeDescriptor());
|
return new TypedValue(result,op.getTypeDescriptor());
|
||||||
} else {
|
} else {
|
||||||
if (operand==null && nullSafe) {
|
if (operand==null) {
|
||||||
return TypedValue.NULL_TYPED_VALUE;
|
if (nullSafe) {
|
||||||
|
return TypedValue.NULL_TYPED_VALUE;
|
||||||
|
} else {
|
||||||
|
throw new SpelEvaluationException(getStartPosition(),SpelMessages.PROJECTION_NOT_SUPPORTED_ON_TYPE, "null");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new SpelEvaluationException(getStartPosition(),SpelMessages.PROJECTION_NOT_SUPPORTED_ON_TYPE, operand.getClass().getName());
|
throw new SpelEvaluationException(getStartPosition(),SpelMessages.PROJECTION_NOT_SUPPORTED_ON_TYPE, operand.getClass().getName());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue