camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/3] camel git commit: CAMEL-10048: Fixed memory leak in routing slip. Thanks to Arseniy Tashoyan for the patch.
Date Sun, 12 Jun 2016 12:23:19 GMT
CAMEL-10048: Fixed memory leak in routing slip. Thanks to Arseniy Tashoyan for the patch.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/df2a31a4
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/df2a31a4
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/df2a31a4

Branch: refs/heads/camel-2.17.x
Commit: df2a31a4b1f45efd989bbf23bad581039e34d815
Parents: 900cf69
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun Jun 12 14:22:54 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun Jun 12 14:22:54 2016 +0200

----------------------------------------------------------------------
 .../apache/camel/util/AsyncProcessorConverterHelper.java  | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/df2a31a4/camel-core/src/main/java/org/apache/camel/util/AsyncProcessorConverterHelper.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/AsyncProcessorConverterHelper.java
b/camel-core/src/main/java/org/apache/camel/util/AsyncProcessorConverterHelper.java
index 6b1862e..14319ed 100644
--- a/camel-core/src/main/java/org/apache/camel/util/AsyncProcessorConverterHelper.java
+++ b/camel-core/src/main/java/org/apache/camel/util/AsyncProcessorConverterHelper.java
@@ -123,13 +123,21 @@ public final class AsyncProcessorConverterHelper {
                 return false;
             }
 
+            if (processor == null) {
+                return false;
+            }
+
             ProcessorToAsyncProcessorBridge that = (ProcessorToAsyncProcessorBridge) o;
             return processor.equals(that.processor);
         }
 
         @Override
         public int hashCode() {
-            return processor.hashCode();
+            if (processor != null) {
+                return processor.hashCode();
+            } else {
+                return 0;
+            }
         }
     }
 


Mime
View raw message