mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
1. Fix bug EDKT241 "If and MSA file is missing, the Wizard gives a NULL Pointer Exception, with no hints that the workspace is not valid."
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1444 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2be2804b25
commit
94b0f428d7
@ -93,10 +93,13 @@ public class GlobalData {
|
|||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.err("Open Module Surface Area " + modulePath, e.getMessage());
|
Log.err("Open Module Surface Area " + modulePath, e.getMessage());
|
||||||
|
continue;
|
||||||
} catch (XmlException e) {
|
} catch (XmlException e) {
|
||||||
Log.err("Open Module Surface Area " + modulePath, e.getMessage());
|
Log.err("Open Module Surface Area " + modulePath, e.getMessage());
|
||||||
|
continue;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.err("Open Module Surface Area " + modulePath, "Invalid file type");
|
Log.err("Open Module Surface Area " + modulePath, "Invalid file type");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
id = Tools.getId(modulePath, msa);
|
id = Tools.getId(modulePath, msa);
|
||||||
mid = new ModuleIdentification(id, vPackageList.elementAt(indexI));
|
mid = new ModuleIdentification(id, vPackageList.elementAt(indexI));
|
||||||
@ -122,10 +125,13 @@ public class GlobalData {
|
|||||||
spd = OpenFile.openSpdFile(path);
|
spd = OpenFile.openSpdFile(path);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.err("Open Package Surface Area " + path, e.getMessage());
|
Log.err("Open Package Surface Area " + path, e.getMessage());
|
||||||
|
continue;
|
||||||
} catch (XmlException e) {
|
} catch (XmlException e) {
|
||||||
Log.err("Open Package Surface Area " + path, e.getMessage());
|
Log.err("Open Package Surface Area " + path, e.getMessage());
|
||||||
|
continue;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.err("Open Package Surface Area " + path, "Invalid file type");
|
Log.err("Open Package Surface Area " + path, "Invalid file type");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
id = Tools.getId(path, spd);
|
id = Tools.getId(path, spd);
|
||||||
vPackageList.addElement(id);
|
vPackageList.addElement(id);
|
||||||
@ -150,10 +156,13 @@ public class GlobalData {
|
|||||||
fpd = OpenFile.openFpdFile(path);
|
fpd = OpenFile.openFpdFile(path);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.err("Open Platform Surface Area " + path, e.getMessage());
|
Log.err("Open Platform Surface Area " + path, e.getMessage());
|
||||||
|
continue;
|
||||||
} catch (XmlException e) {
|
} catch (XmlException e) {
|
||||||
Log.err("Open Platform Surface Area " + path, e.getMessage());
|
Log.err("Open Platform Surface Area " + path, e.getMessage());
|
||||||
|
continue;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.err("Open Platform Surface Area " + path, "Invalid file type");
|
Log.err("Open Platform Surface Area " + path, "Invalid file type");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
id = Tools.getId(path, fpd);
|
id = Tools.getId(path, fpd);
|
||||||
vPlatformList.addElement(new PlatformIdentification(id));
|
vPlatformList.addElement(new PlatformIdentification(id));
|
||||||
|
@ -294,8 +294,9 @@ public class WorkspaceTools {
|
|||||||
for (int index = 0; index < modulePaths.size(); index++) {
|
for (int index = 0; index < modulePaths.size(); index++) {
|
||||||
modulePath = modulePaths.get(index);
|
modulePath = modulePaths.get(index);
|
||||||
ModuleIdentification id = GlobalData.openingModuleList.getIdByPath(modulePath);
|
ModuleIdentification id = GlobalData.openingModuleList.getIdByPath(modulePath);
|
||||||
|
if (id != null) {
|
||||||
v.addElement(id);
|
v.addElement(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Sort.sortModules(v, DataType.SORT_TYPE_ASCENDING);
|
Sort.sortModules(v, DataType.SORT_TYPE_ASCENDING);
|
||||||
return v;
|
return v;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user