Don't NPE when shutting down non-existent thrift server

This commit is contained in:
Brandon Williams 2013-10-24 09:56:38 -05:00
parent c040759da5
commit 9eddaa8ffa
1 changed files with 2 additions and 1 deletions

View File

@ -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()