summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-23 17:26:27 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-23 17:26:27 +0000
commit6ab88a7c86ac8bdadf87a56ca041b816bd8da453 (patch)
tree7070de838f49ba4667d1b8fc639fcb667082cd3d /Tools
parent9a557fb6c728cbbb4d743343e57c912f6c6ff4bc (diff)
downloadedk2-6ab88a7c86ac8bdadf87a56ca041b816bd8da453.zip
edk2-6ab88a7c86ac8bdadf87a56ca041b816bd8da453.tar.gz
edk2-6ab88a7c86ac8bdadf87a56ca041b816bd8da453.tar.bz2
Fix track EDKT97: Use {0} as NULL value for VOID* type PCD but not {}
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1077 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r--Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java b/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java
index a0c371d..4d3aadd 100644
--- a/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java
+++ b/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java
@@ -2579,7 +2579,12 @@ public class CollectPCDAction {
strValue = datum.substring(start + 1, end);
strValue = strValue.trim();
if (strValue.length() == 0) {
- break;
+ exceptionString = String.format ("[FPD file error] The datum type of PCD %s in %s is VOID*, and "+
+ "it is byte array in fact, but '{}' is not valid for NULL datam but"+
+ " need use '{0}'",
+ cName,
+ moduleName);
+ return exceptionString;
}
strValueArray = strValue.split(",");
for (index = 0; index < strValueArray.length; index ++) {