mirror of https://github.com/apache/cassandra
Don't NPE when shutting down non-existent thrift server
This commit is contained in:
parent
c040759da5
commit
9eddaa8ffa
|
|
@ -318,7 +318,8 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
|
|||
{
|
||||
throw new IllegalStateException("No configured daemon");
|
||||
}
|
||||
daemon.thriftServer.stop();
|
||||
if (daemon.thriftServer != null)
|
||||
daemon.thriftServer.stop();
|
||||
}
|
||||
|
||||
public boolean isRPCServerRunning()
|
||||
|
|
|
|||
Loading…
Reference in New Issue