Defensive null handling for exception message
See gh-24878
This commit is contained in:
parent
7324140d20
commit
5d96a2dc9e
|
|
@ -386,7 +386,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
|
|||
}
|
||||
catch (BeansException ex) {
|
||||
beanCreation.tag("exception", ex.getClass().toString());
|
||||
beanCreation.tag("message", ex.getMessage());
|
||||
beanCreation.tag("message", String.valueOf(ex.getMessage()));
|
||||
cleanupAfterBeanCreationFailure(beanName);
|
||||
throw ex;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue