camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [3/4] camel git commit: Default tail tracking strategy must always exist. The endpoint getter always must ensure that it is never null.
Date Sat, 07 Jan 2017 09:56:29 GMT
Default tail tracking strategy must always exist. The endpoint getter always must ensure that
it is never null.


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

Branch: refs/heads/master
Commit: 24a2d04fa51cc4e941daa4e264027bdde6fe607c
Parents: bc4bf1b
Author: gilfernandes <gil.fernandes@gmail.com>
Authored: Sat Jan 7 09:51:32 2017 +0000
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Sat Jan 7 10:52:29 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/mongodb/MongoDbEndpoint.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/24a2d04f/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
index 0b2081a..aa75b15 100644
--- a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
+++ b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbEndpoint.java
@@ -663,6 +663,9 @@ public class MongoDbEndpoint extends DefaultEndpoint {
     }
 
     public MongoDBTailTrackingEnum getTailTrackingStrategy() {
+        if(tailTrackingStrategy == null) {
+            tailTrackingStrategy = MongoDBTailTrackingEnum.LITERAL;
+        }
         return tailTrackingStrategy;
     }
 


Mime
View raw message