1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 14:25:37 +02:00

[260991] - applied patch to prevent class cast exception

This commit is contained in:
Alena Laskavaia 2009-01-15 15:05:19 +00:00
parent ddc590e5fd
commit bd8c6c1ffc

View file

@ -261,7 +261,13 @@ public class ErrorParserManager extends OutputStream {
}
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;