]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix track EDKT97: Use {0} as NULL value for VOID* type PCD but not {}
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 23 Jul 2006 17:26:27 +0000 (17:26 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 23 Jul 2006 17:26:27 +0000 (17:26 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1077 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java

index a0c371d063b5ffd1edae7023930a654d3f8630f9..4d3aadd9619a3f91116e6473bae15c27de76e478 100644 (file)
@@ -2579,7 +2579,12 @@ public class CollectPCDAction {
                 strValue        = datum.substring(start + 1, end);\r
                 strValue        = strValue.trim();\r
                 if (strValue.length() == 0) {\r
-                    break;\r
+                    exceptionString = String.format ("[FPD file error] The datum type of PCD %s in %s is VOID*, and "+\r
+                                                     "it is byte array in fact, but '{}' is not valid for NULL datam but"+\r
+                                                     " need use '{0}'",\r
+                                                     cName,\r
+                                                     moduleName);\r
+                    return exceptionString;\r
                 }\r
                 strValueArray   = strValue.split(",");\r
                 for (index = 0; index < strValueArray.length; index ++) {\r