Skip to content

Commit dc1ac3c

Browse files
Vijayendra BhamidipatiSheng Yang
authored andcommitted
CLOUDSTACK-3554: NPE while attaching VMWARE Tools ISO to the instance
Description: Account for null imagestore for vmware-tools iso.
1 parent 83c7b9a commit dc1ac3c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,9 @@ private Answer attachIso(DiskTO disk, boolean isAttach, String vmName) {
869869
}
870870
TemplateObjectTO iso = (TemplateObjectTO)disk.getData();
871871
NfsTO nfsImageStore = (NfsTO)iso.getDataStore();
872-
String storeUrl = nfsImageStore.getUrl();
872+
String storeUrl = null;
873+
if (nfsImageStore != null)
874+
storeUrl = nfsImageStore.getUrl();
873875
if (storeUrl == null) {
874876
if (!iso.getName().equalsIgnoreCase("vmware-tools.iso")) {
875877
String msg = "ISO store root url is not found in AttachIsoCommand";

0 commit comments

Comments
 (0)