summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-06 01:33:08 +0000
committerwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-06 01:33:08 +0000
commit80785fd5be587d420174dc35d6af4ada06ed2f0f (patch)
treed24b02a08accdc36f337e63ee227018cba8fa913 /Tools
parentf3b0ed9a12ec287bb336b9672a0937667f1958ec (diff)
downloadedk2-platforms-80785fd5be587d420174dc35d6af4ada06ed2f0f.tar.xz
Fix an issue for user extensions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@780 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r--Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java b/Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java
index 39384c45ba..0b16e30df3 100644
--- a/Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java
+++ b/Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java
@@ -1382,7 +1382,7 @@ public class SurfaceAreaQuery {
String[] xPath = new String[] { "/UserExtensions" };
Object[] queryResult = get("PlatformSurfaceArea", xPath);
- if (queryResult == null && queryResult.length == 0) {
+ if (queryResult == null || queryResult.length == 0) {
return null;
}
UserExtensionsDocument.UserExtensions a = (UserExtensionsDocument.UserExtensions)queryResult[0];