File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
server/src/com/cloud/consoleproxy Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -208,12 +208,13 @@ public void startAgentHttpHandlerInVM(StartupProxyCommand startupCmd) {
208208 HostVO consoleProxyHost = findConsoleProxyHost (startupCmd );
209209
210210 assert (consoleProxyHost != null );
211-
212- Answer answer = _agentMgr .send (consoleProxyHost .getId (), cmd );
213- if (answer == null || !answer .getResult ()) {
214- s_logger .error ("Console proxy agent reported that it failed to execute http handling startup command" );
215- } else {
216- s_logger .info ("Successfully sent out command to start HTTP handling in console proxy agent" );
211+ if (consoleProxyHost != null ) {
212+ Answer answer = _agentMgr .send (consoleProxyHost .getId (), cmd );
213+ if (answer == null || !answer .getResult ()) {
214+ s_logger .error ("Console proxy agent reported that it failed to execute http handling startup command" );
215+ } else {
216+ s_logger .info ("Successfully sent out command to start HTTP handling in console proxy agent" );
217+ }
217218 }
218219 }catch (NoSuchAlgorithmException e ) {
219220 s_logger .error ("Unexpected exception in SecureRandom Algorithm selection " , e );
You can’t perform that action at this time.
0 commit comments