]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/workspace/WorkspaceTools.java
1. Fix bug EDKT241 "If and MSA file is missing, the Wizard gives a NULL Pointer Excep...
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / workspace / WorkspaceTools.java
index 9c8368b0d7c45b0a06fc529e6cc073a670bbbe6a..10b8aee17faeafd756775adcbc23246a9be2c438 100644 (file)
@@ -294,8 +294,9 @@ public class WorkspaceTools {
         for (int index = 0; index < modulePaths.size(); index++) {\r
             modulePath = modulePaths.get(index);\r
             ModuleIdentification id = GlobalData.openingModuleList.getIdByPath(modulePath);\r
-\r
-            v.addElement(id);\r
+            if (id != null) {\r
+                v.addElement(id);    \r
+            }\r
         }\r
         Sort.sortModules(v, DataType.SORT_TYPE_ASCENDING);\r
         return v;\r