1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

optimize something in last commit

This commit is contained in:
John Cortell 2010-01-13 21:44:45 +00:00
parent 1d6fff500a
commit 27f0a6d064

View file

@ -308,10 +308,11 @@ public class Binary extends Openable implements IBinary {
String[] sourceFiles = symbolreader.getSourceFiles();
if (sourceFiles != null && sourceFiles.length > 0) {
ISourceFinder srcFinder = (ISourceFinder) getAdapter(ISourceFinder.class);
for (String filename : sourceFiles) {
// Find the file locally
ISourceFinder srcFinder = (ISourceFinder) getAdapter(ISourceFinder.class);
if (srcFinder != null) {
String localPath = srcFinder.toLocalPath(filename);
if (localPath != null) {