geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject geode git commit: GEODE-2449: Do a null check on the stopRedisServer
Date Fri, 10 Feb 2017 23:21:31 GMT
Repository: geode
Updated Branches:
  refs/heads/feature/GEODE-2449 318b56a5e -> 5562547e0


GEODE-2449: Do a null check on the stopRedisServer


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/5562547e
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/5562547e
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/5562547e

Branch: refs/heads/feature/GEODE-2449
Commit: 5562547e065906c3c1815875f8693ad0f4be93d0
Parents: 318b56a
Author: Udo Kohlmeyer <ukohlmeyer@pivotal.io>
Authored: Fri Feb 10 15:21:27 2017 -0800
Committer: Udo Kohlmeyer <ukohlmeyer@pivotal.io>
Committed: Fri Feb 10 15:21:27 2017 -0800

----------------------------------------------------------------------
 .../java/org/apache/geode/internal/cache/GemFireCacheImpl.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/5562547e/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java
b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java
index e8f410d..1df20dc 100755
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java
@@ -2555,7 +2555,10 @@ public class GemFireCacheImpl
   }
 
   private void stopRedisServer() {
-    getService(GeodeRedisService.class).stop();
+    GeodeRedisService geodeRedisService = getService(GeodeRedisService.class);
+    if (geodeRedisService != null) {
+      geodeRedisService.stop();
+    }
   }
 
   private void stopRestAgentServer() {


Mime
View raw message