diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-03-06 03:28:01 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-03-06 03:28:01 +0000 |
commit | ad368bfe44cfbd61e47894c55a3dd3ccb143f22f (patch) | |
tree | ba4d9c0a3569b746f92ece6fa3925987a95725d9 /Tools | |
parent | c6345a1321528267d9f2c45add37dceccfe0ccff (diff) | |
download | edk2-platforms-ad368bfe44cfbd61e47894c55a3dd3ccb143f22f.tar.xz |
Fixed EDKT527 by adding a check on the file size in case of zero byte of byte
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2420 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java index 7dfb8cbb06..86f39adafc 100644 --- a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java +++ b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java @@ -295,7 +295,8 @@ public class MakeDeps extends Task { while (!pendingFiles.empty()) {
String src = pendingFiles.pop();
File srcFile = new File(src);
- if (!srcFile.exists()) {
+ int fileLength = (int)srcFile.length();
+ if (!srcFile.exists() || fileLength == 0) {
continue;
}
//
@@ -307,7 +308,6 @@ public class MakeDeps extends Task { FileInputStream fileReader = null;
BufferedInputStream bufReader = null;
String fileContent = "";
- int fileLength = (int)srcFile.length();
try {
fileReader = new FileInputStream(srcFile);
|