camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/3] camel git commit: CAMEL-6720: Fixed potential NPE in camel-soap. Thanks to Movees for the fix.
Date Thu, 28 Apr 2016 12:46:22 GMT
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/6beac840
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6beac840
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6beac840

Branch: refs/heads/camel-2.16.x
Commit: 6beac840c427521c7bbfed71ce3711487aa51dd6
Parents: 49baf40
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Apr 28 14:45:36 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Apr 28 14:46:12 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/6beac840/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) {


Mime
View raw message