usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [32/33] git commit: add null check
Date Fri, 05 Sep 2014 21:11:35 GMT
add null check


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

Branch: refs/heads/two-dot-o
Commit: 93477bc8b876e437b413927d99a83bc9800ab87e
Parents: af4aa40
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Thu Sep 4 13:23:08 2014 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Thu Sep 4 13:23:08 2014 -0600

----------------------------------------------------------------------
 .../services/notifications/gcm/NotificationsServiceIT.java     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/93477bc8/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
----------------------------------------------------------------------
diff --git a/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
b/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
index 32a7328..e77541f 100644
--- a/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
+++ b/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
@@ -111,8 +111,10 @@ public class NotificationsServiceIT extends AbstractServiceNotificationIT
{
 
     @After
     public void after(){
-        listener.stop();
-        listener = null;
+        if(listener!=null) {
+            listener.stop();
+            listener = null;
+        }
     }
 
     @Test


Mime
View raw message