This commit is contained in:
Stephane Nicoll 2016-10-24 20:12:18 +02:00
parent b7d85f8ebc
commit 827bc78e34
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ public class NoSuchBeanDefinitionException extends BeansException {
* Return the required type of the missing bean, if it was a lookup <em>by type</em> that failed.
*/
public Class<?> getBeanType() {
return this.beanResolvableType.getRawClass();
return (this.beanResolvableType != null ? this.beanResolvableType.getRawClass() : null);
}
/**