This commit is contained in:
Arjen Poutsma
2008-04-27 14:12:09 +00:00
parent cf86567786
commit 2783582c7d

View File

@@ -44,7 +44,8 @@ public abstract class AbstractAnnotationMethodEndpointMapping extends AbstractMe
}
public final Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
if (getEndpointClass(bean).getAnnotation(getEndpointAnnotationType()) != null) {
Class endpointClass = getEndpointClass(bean);
if (endpointClass != null && endpointClass.getAnnotation(getEndpointAnnotationType()) != null) {
registerMethods(bean);
}
return bean;