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
This commit is contained in:
@ -295,7 +295,8 @@ public class MakeDeps extends Task {
|
|||||||
while (!pendingFiles.empty()) {
|
while (!pendingFiles.empty()) {
|
||||||
String src = pendingFiles.pop();
|
String src = pendingFiles.pop();
|
||||||
File srcFile = new File(src);
|
File srcFile = new File(src);
|
||||||
if (!srcFile.exists()) {
|
int fileLength = (int)srcFile.length();
|
||||||
|
if (!srcFile.exists() || fileLength == 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
@ -307,7 +308,6 @@ public class MakeDeps extends Task {
|
|||||||
FileInputStream fileReader = null;
|
FileInputStream fileReader = null;
|
||||||
BufferedInputStream bufReader = null;
|
BufferedInputStream bufReader = null;
|
||||||
String fileContent = "";
|
String fileContent = "";
|
||||||
int fileLength = (int)srcFile.length();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
fileReader = new FileInputStream(srcFile);
|
fileReader = new FileInputStream(srcFile);
|
||||||
|
Reference in New Issue
Block a user