mirror of https://github.com/apache/cassandra
Fix NPE in nodetool on booting instances.
Patch by Mikhail Stepura, reviewed by brandonwilliams for CASSANDRA-5968
This commit is contained in:
parent
0e18f23c5c
commit
08c07f5f32
|
|
@ -323,7 +323,7 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
|
|||
|
||||
public boolean isRPCServerRunning()
|
||||
{
|
||||
if (daemon == null)
|
||||
if ((daemon == null) || (daemon.thriftServer == null))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -358,7 +358,7 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
|
|||
|
||||
public boolean isNativeTransportRunning()
|
||||
{
|
||||
if (daemon == null)
|
||||
if ((daemon == null) || (daemon.nativeServer == null))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue