mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 12:55:40 +02:00
check the existence of the file first.
This commit is contained in:
parent
d2195ebf5d
commit
942b757516
1 changed files with 2 additions and 1 deletions
|
@ -272,7 +272,8 @@ public class ErrorParserManager extends OutputStream {
|
||||||
else {
|
else {
|
||||||
path = (IPath) getWorkingDirectory().append(filePath);
|
path = (IPath) getWorkingDirectory().append(filePath);
|
||||||
}
|
}
|
||||||
return (IFile) fProject.getFile(path);
|
IFile file = fProject.getFile(path);
|
||||||
|
return (file.exists()) ? file : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected class Problem {
|
protected class Problem {
|
||||||
|
|
Loading…
Add table
Reference in a new issue