[Esbox-commits] r2115 - branches/work_Fabricio/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware
fabricioepa at garage.maemo.org
fabricioepa at garage.maemo.org
Tue Sep 8 15:54:21 EEST 2009
Author: fabricioepa
Date: 2009-09-08 15:54:20 +0300 (Tue, 08 Sep 2009)
New Revision: 2115
Modified:
branches/work_Fabricio/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware/MaemoSDKVMInstaller.java
Log:
giving a useful error message
Modified: branches/work_Fabricio/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware/MaemoSDKVMInstaller.java
===================================================================
--- branches/work_Fabricio/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware/MaemoSDKVMInstaller.java 2009-09-08 12:52:28 UTC (rev 2114)
+++ branches/work_Fabricio/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware/MaemoSDKVMInstaller.java 2009-09-08 12:54:20 UTC (rev 2115)
@@ -197,6 +197,11 @@
try {
zipInputStream = new ZipInputStream(new FileInputStream(fileName));
zipEntry = zipInputStream.getNextEntry();
+
+ if(zipEntry == null){
+ statuses[0] = Activator.createErrorStatus("Cannot uncompress Maemo SDK virtual image, no zip entry was found.", null);
+ }
+
while (zipEntry != null) {
// for each entry to be extracted
More information about the Esbox-commits
mailing list