We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4358638 + c718880 commit 0317427Copy full SHA for 0317427
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Sanitizer.java
@@ -79,9 +79,12 @@ private boolean isRegex(String value) {
79
* @return the potentially sanitized value
80
*/
81
public Object sanitize(String key, Object value) {
82
+ if (value == null) {
83
+ return null;
84
+ }
85
for (Pattern pattern : this.keysToSanitize) {
86
if (pattern.matcher(key).matches()) {
- return (value == null ? null : "******");
87
+ return "******";
88
}
89
90
return value;
0 commit comments