Fix an issue for user extensions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@780 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
wuyizhong 2006-07-06 01:33:08 +00:00
parent f3b0ed9a12
commit 80785fd5be
1 changed files with 1 additions and 1 deletions

View File

@ -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];