summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rw-r--r--Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/MakeDeps.java4
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 7dfb8cb..86f39ad 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);