1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-30 12:25:35 +02:00

check the existence of the file first.

This commit is contained in:
Alain Magloire 2002-10-31 14:52:57 +00:00
parent d2195ebf5d
commit 942b757516

View file

@ -272,7 +272,8 @@ public class ErrorParserManager extends OutputStream {
else {
path = (IPath) getWorkingDirectory().append(filePath);
}
return (IFile) fProject.getFile(path);
IFile file = fProject.getFile(path);
return (file.exists()) ? file : null;
}
protected class Problem {