mirror of https://github.com/acidanthera/audk.git
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" };
|
||||
|
||||
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];
|
||||
|
|
Loading…
Reference in New Issue