Avoiding NPE when there is an ambiguous method and no method name has been provided.

This commit is contained in:
Mark Fisher
2009-12-23 20:32:09 +00:00
parent 60ef9cb730
commit 99a577372e
2 changed files with 30 additions and 0 deletions

View File

@@ -200,6 +200,7 @@ public class MethodInvokingMessageProcessor implements MessageProcessor {
if (logger.isDebugEnabled()) {
logger.debug("Method [" + method + "] is not eligible for Message handling.", e);
}
return;
}
Class<?> targetParameterType = handlerMethod.getTargetParameterType();
if (matchesAnnotation || annotationType == null) {