usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject [1/2] git commit: add null check after test
Date Mon, 08 Sep 2014 15:50:56 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o 3b73cec8a -> e1ddd47c3


add null check after test


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

Branch: refs/heads/two-dot-o
Commit: 1f1b264a795e19bf707745525ecfed575bf649d4
Parents: 3b73cec
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Mon Sep 8 09:12:58 2014 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Mon Sep 8 09:12:58 2014 -0600

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


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/1f1b264a/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
----------------------------------------------------------------------
diff --git a/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
b/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
index 13cd29f..cfa5dac 100644
--- a/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
+++ b/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
@@ -136,8 +136,10 @@ public class NotificationsServiceIT extends AbstractServiceNotificationIT
{
 
     @After
     public void after() throws Exception {
-        listener.stop();
-        listener = null;
+        if(listener != null) {
+            listener.stop();
+            listener = null;
+        }
     }
 
     @Test


Mime
View raw message