Fix NPE in nodetool on booting instances.

Patch by Mikhail Stepura, reviewed by brandonwilliams for CASSANDRA-5968
This commit is contained in:
Brandon Williams 2013-09-13 12:17:37 -05:00
parent 0e18f23c5c
commit 08c07f5f32
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}