Skip to content

Commit 13a7a52

Browse files
committed
Revert "Work around Framework regression in handling of null model values"
This reverts commit 5fc67c5. Closes gh-16991
1 parent 7d59b78 commit 13a7a52

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/error/DefaultErrorAttributes.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ public Map<String, Object> getErrorAttributes(ServerRequest request, boolean inc
8383
HttpStatus errorStatus = determineHttpStatus(error);
8484
errorAttributes.put("status", errorStatus.value());
8585
errorAttributes.put("error", errorStatus.getReasonPhrase());
86-
String message = determineMessage(error);
87-
errorAttributes.put("message", (message != null) ? message : "");
86+
errorAttributes.put("message", determineMessage(error));
8887
handleException(errorAttributes, determineException(error), includeStackTrace);
8988
return errorAttributes;
9089
}

0 commit comments

Comments
 (0)