mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3554: NPE while attaching VMWARE Tools ISO to the instance
Description:
Account for null imagestore for vmware-tools iso.
This commit is contained in:
parent
c618caf102
commit
d6cb95208b
|
|
@ -869,7 +869,9 @@ public class VmwareStorageProcessor implements StorageProcessor {
|
|||
}
|
||||
TemplateObjectTO iso = (TemplateObjectTO)disk.getData();
|
||||
NfsTO nfsImageStore = (NfsTO)iso.getDataStore();
|
||||
String storeUrl = nfsImageStore.getUrl();
|
||||
String storeUrl = null;
|
||||
if (nfsImageStore != null)
|
||||
storeUrl = nfsImageStore.getUrl();
|
||||
if (storeUrl == null) {
|
||||
if (!iso.getName().equalsIgnoreCase("vmware-tools.iso")) {
|
||||
String msg = "ISO store root url is not found in AttachIsoCommand";
|
||||
|
|
|
|||
Loading…
Reference in New Issue