diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/error/DefaultErrorAttributes.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/error/DefaultErrorAttributes.java index 2e12136045f..e99cf14c3a5 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/error/DefaultErrorAttributes.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/error/DefaultErrorAttributes.java @@ -86,7 +86,7 @@ public class DefaultErrorAttributes implements ErrorAttributes { errorAttributes.put("status", errorStatus.value()); errorAttributes.put("error", errorStatus.getReasonPhrase()); String message = determineMessage(error); - errorAttributes.put("message", message != null ? message : ""); + errorAttributes.put("message", (message != null) ? message : ""); handleException(errorAttributes, determineException(error), includeStackTrace); return errorAttributes; }