(Fixed EDKT523) Added more check on "archString" to see if it's empty or not.
authorjwang36 <jwang36@de2fecce-e211-0410-80a6-f3fac2684e05>
Wed, 7 Feb 2007 05:34:51 +0000 (05:34 +0000)
committerjwang36 <jwang36@de2fecce-e211-0410-80a6-f3fac2684e05>
Wed, 7 Feb 2007 05:34:51 +0000 (05:34 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@2355 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java

index a849530..28bfb9e 100644 (file)
@@ -232,7 +232,7 @@ public class GenBuildTask extends Ant {
 \r
         Set<String> archSet = new LinkedHashSet<String>();\r
         String archString = getProject().getProperty("ARCH");\r
-        if (archString != null) {\r
+        if (archString != null && archString.length() > 0) {\r
             String[] fpdArchList = archString.split(" ");\r
 \r
             for (int i = 0; i < fpdArchList.length; i++) {\r