mirror of https://github.com/apache/cloudstack.git
server: fix NPE, compare known versus unknown in equals()
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
807cd6a830
commit
607911562e
|
|
@ -2390,7 +2390,7 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
|
|||
_hostDao.update(host.getId(), host);
|
||||
}
|
||||
|
||||
if (host != null && host.getHypervisorType().equals(HypervisorType.XenServer) &&
|
||||
if (host != null && HypervisorType.XenServer.equals(host.getHypervisorType()) &&
|
||||
startup instanceof StartupRoutingCommand) {
|
||||
final StartupRoutingCommand ssCmd = (StartupRoutingCommand)startup;
|
||||
updateSupportsClonedVolumes(host, ssCmd.getSupportsClonedVolumes());
|
||||
|
|
|
|||
Loading…
Reference in New Issue