mirror of
https://github.com/apache/cloudstack
synced 2026-08-30 00:52:15 +00:00
fixed NPE, secondary storage VM host may not exist even the secondary storage VM is running
This commit is contained in:
parent
9761661989
commit
a449aa320f
@ -391,6 +391,9 @@ public class SecondaryStorageManagerImpl implements SecondaryStorageVmManager, V
|
||||
}
|
||||
String instanceName = ssVm.getInstanceName();
|
||||
HostVO host = _hostDao.findByName(instanceName);
|
||||
if ( host == null ) {
|
||||
continue;
|
||||
}
|
||||
Answer answer = _agentMgr.easySend(host.getId(), thiscpc);
|
||||
if (answer != null && answer.getResult()) {
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user