mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polish
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user