Skip to content

Commit 2783582

Browse files
committed
SWS-342
1 parent cf86567 commit 2783582

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core-tiger/src/main/java/org/springframework/ws/server/endpoint/mapping/AbstractAnnotationMethodEndpointMapping.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ protected Class<? extends Annotation> getEndpointAnnotationType() {
4444
}
4545

4646
public final Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
47-
if (getEndpointClass(bean).getAnnotation(getEndpointAnnotationType()) != null) {
47+
Class endpointClass = getEndpointClass(bean);
48+
if (endpointClass != null && endpointClass.getAnnotation(getEndpointAnnotationType()) != null) {
4849
registerMethods(bean);
4950
}
5051
return bean;

0 commit comments

Comments
 (0)