CAMEL-6720: Fixed potential NPE in camel-soap. Thanks to Movees for the fix.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/76f4fe72 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/76f4fe72 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/76f4fe72 Branch: refs/heads/camel-2.17.x Commit: 76f4fe727b5e9ab77c368da3c5a1667205039da7 Parents: b8e6282 Author: Claus Ibsen <[email protected]> Authored: Thu Apr 28 14:45:36 2016 +0200 Committer: Claus Ibsen <[email protected]> Committed: Thu Apr 28 14:45:59 2016 +0200 ---------------------------------------------------------------------- .../camel/dataformat/soap/name/ServiceInterfaceStrategy.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/76f4fe72/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/name/ServiceInterfaceStrategy.java ---------------------------------------------------------------------- diff --git a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/name/ServiceInterfaceStrategy.java b/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/name/ServiceInterfaceStrategy.java index a860d56..15884b8 100644 --- a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/name/ServiceInterfaceStrategy.java +++ b/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/name/ServiceInterfaceStrategy.java @@ -96,7 +96,6 @@ public class ServiceInterfaceStrategy implements ElementNameStrategy { // parameter types are returned in declaration order Class<?>[] types = method.getParameterTypes(); if (types.length == 0) { - typeInfos.add(new TypeInfo(null, null)); return typeInfos; } if (requestWrapper != null && requestWrapper.className() != null) { @@ -140,7 +139,7 @@ public class ServiceInterfaceStrategy implements ElementNameStrategy { * Determines how the parameter object of the service method will be named * in xml. It will use either the RequestWrapper annotation of the method if * present or the WebParam method of the parameter. - * + * * @param method */ private MethodInfo analyzeMethod(Method method) {
