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:
Vijayendra Bhamidipati 2013-07-17 10:23:51 -07:00 committed by Sheng Yang
parent c618caf102
commit d6cb95208b
1 changed files with 3 additions and 1 deletions

View File

@ -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";