usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject git commit: check for nulls
Date Thu, 02 Oct 2014 22:37:35 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o bd3907a60 -> ae9c9c05e


check for nulls


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

Branch: refs/heads/two-dot-o
Commit: ae9c9c05eda7d9bc324f1d7c3e26acfe2430ba04
Parents: bd3907a
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Thu Oct 2 16:37:16 2014 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Thu Oct 2 16:37:16 2014 -0600

----------------------------------------------------------------------
 .../org/apache/usergrid/services/notifications/QueueListener.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/ae9c9c05/stack/services/src/main/java/org/apache/usergrid/services/notifications/QueueListener.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/services/notifications/QueueListener.java
b/stack/services/src/main/java/org/apache/usergrid/services/notifications/QueueListener.java
index e637e37..7d76ee9 100644
--- a/stack/services/src/main/java/org/apache/usergrid/services/notifications/QueueListener.java
+++ b/stack/services/src/main/java/org/apache/usergrid/services/notifications/QueueListener.java
@@ -208,6 +208,9 @@ public class QueueListener  {
     public void stop(){
         LOG.info("QueueListener: stop processes");
 
+        if(futures == null){
+            return;
+        }
         for(Future future : futures){
             future.cancel(true);
         }


Mime
View raw message