You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sf...@apache.org on 2014/09/04 21:23:25 UTC
git commit: add null check
Repository: incubator-usergrid
Updated Branches:
refs/heads/two-dot-o-single-queue af4aa4074 -> 93477bc8b
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-single-queue
Commit: 93477bc8b876e437b413927d99a83bc9800ab87e
Parents: af4aa40
Author: Shawn Feldman <sf...@apache.org>
Authored: Thu Sep 4 13:23:08 2014 -0600
Committer: Shawn Feldman <sf...@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