You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apex.apache.org by tu...@apache.org on 2017/09/07 04:39:33 UTC

[apex-malhar] branch master updated: APEXMALHAR-2508 Add null check while calling cancel() for Timer instance in CacheManager

This is an automated email from the ASF dual-hosted git repository.

tushar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apex-malhar.git


The following commit(s) were added to refs/heads/master by this push:
     new d3f7faf  APEXMALHAR-2508 Add null check while calling cancel() for Timer instance in CacheManager
d3f7faf is described below

commit d3f7faf58bff06a3c670241542476d1d4a07386f
Author: ajaygit158 <aj...@gmail.com>
AuthorDate: Wed Jun 14 11:35:06 2017 +0530

    APEXMALHAR-2508 Add null check while calling cancel() for Timer instance in CacheManager
---
 library/src/main/java/com/datatorrent/lib/db/cache/CacheManager.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/library/src/main/java/com/datatorrent/lib/db/cache/CacheManager.java b/library/src/main/java/com/datatorrent/lib/db/cache/CacheManager.java
index 4724761..869302b 100644
--- a/library/src/main/java/com/datatorrent/lib/db/cache/CacheManager.java
+++ b/library/src/main/java/com/datatorrent/lib/db/cache/CacheManager.java
@@ -177,7 +177,9 @@ public class CacheManager implements Closeable
   @Override
   public void close() throws IOException
   {
-    refresher.cancel();
+    if (refresher != null) {
+      refresher.cancel();
+    }
     primary.disconnect();
     backup.disconnect();
   }

-- 
To stop receiving notification emails like this one, please contact
['"commits@apex.apache.org" <co...@apex.apache.org>'].