mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +02:00
[260991] - applied patch to prevent class cast exception
This commit is contained in:
parent
ddc590e5fd
commit
bd8c6c1ffc
1 changed files with 7 additions and 1 deletions
|
@ -261,7 +261,13 @@ public class ErrorParserManager extends OutputStream {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(matchingFile == null) {
|
if(matchingFile == null) {
|
||||||
return (IFile) fFilesInProject.get(path.lastSegment()); // last ditch attempt... look for a file with that name in the project
|
// one more attempt... look for a file with that name in the project
|
||||||
|
Object candidateFile = fFilesInProject.get(path.lastSegment());
|
||||||
|
if (candidateFile instanceof IFile) {
|
||||||
|
return (IFile) candidateFile;
|
||||||
|
}
|
||||||
|
// not found or getting list of files which is ambiguous
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return matchingFile;
|
return matchingFile;
|
||||||
|
|
Loading…
Add table
Reference in a new issue