You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2014/02/04 18:02:14 UTC

[2/3] git commit: fix NPE when stopping nonexistent native server, again.

fix NPE when stopping nonexistent native server, again.


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/723fcd19
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/723fcd19
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/723fcd19

Branch: refs/heads/trunk
Commit: 723fcd1936ad792b8e85490312cbe3edc9d4099e
Parents: 039e9b9
Author: Brandon Williams <br...@apache.org>
Authored: Tue Feb 4 11:00:04 2014 -0600
Committer: Brandon Williams <br...@apache.org>
Committed: Tue Feb 4 11:00:04 2014 -0600

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/StorageService.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/723fcd19/src/java/org/apache/cassandra/service/StorageService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/StorageService.java b/src/java/org/apache/cassandra/service/StorageService.java
index f46ae66..5f9657d 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -346,7 +346,8 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
         {
             throw new IllegalStateException("No configured daemon");
         }
-        daemon.nativeServer.stop();
+        if (daemon.nativeServer != null)
+            daemon.nativeServer.stop();
     }
 
     public boolean isNativeTransportRunning()