Skip to content

Commit 5d96a2d

Browse files
committed
Defensive null handling for exception message
See gh-24878
1 parent 7324140 commit 5d96a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ else if (mbd.isPrototype()) {
386386
}
387387
catch (BeansException ex) {
388388
beanCreation.tag("exception", ex.getClass().toString());
389-
beanCreation.tag("message", ex.getMessage());
389+
beanCreation.tag("message", String.valueOf(ex.getMessage()));
390390
cleanupAfterBeanCreationFailure(beanName);
391391
throw ex;
392392
}

0 commit comments

Comments
 (0)