mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 07:04:28 +02:00
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:
parent
f3b0ed9a12
commit
80785fd5be
@ -1382,7 +1382,7 @@ public class SurfaceAreaQuery {
|
|||||||
String[] xPath = new String[] { "/UserExtensions" };
|
String[] xPath = new String[] { "/UserExtensions" };
|
||||||
|
|
||||||
Object[] queryResult = get("PlatformSurfaceArea", xPath);
|
Object[] queryResult = get("PlatformSurfaceArea", xPath);
|
||||||
if (queryResult == null && queryResult.length == 0) {
|
if (queryResult == null || queryResult.length == 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
UserExtensionsDocument.UserExtensions a = (UserExtensionsDocument.UserExtensions)queryResult[0];
|
UserExtensionsDocument.UserExtensions a = (UserExtensionsDocument.UserExtensions)queryResult[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user