Skip to content

Commit 3fbcebb

Browse files
committed
Merge pull request spring-projects#113 from aclement/SPR-9613
* SPR-9613: Support case-insensitive null literals in SpEL
2 parents 529e629 + a7418f4 commit 3fbcebb

File tree

3 files changed

+134
-120
lines changed

3 files changed

+134
-120
lines changed

spring-expression/src/main/java/org/springframework/expression/spel/standard/InternalSpelExpressionParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ private boolean maybeEatTypeReference() {
513513
private boolean maybeEatNullReference() {
514514
if (peekToken(TokenKind.IDENTIFIER)) {
515515
Token nullToken = peekToken();
516-
if (!nullToken.stringValue().equals("null")) {
516+
if (!nullToken.stringValue().toLowerCase().equals("null")) {
517517
return false;
518518
}
519519
nextToken();

0 commit comments

Comments
 (0)