1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Bug 342535 - [disassembly] Don't resolve files to an inaccessible resource

This commit is contained in:
Anton Leherbauer 2011-04-12 10:36:42 +00:00
parent 9b7e344590
commit e1cfb22cba

View file

@ -2872,7 +2872,7 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
final IPath location= ((IStorage) sourceElement).getFullPath();
if (location != null) {
IFile iFile = ResourceLookup.selectFileForLocation(location, null);
if (iFile != null) {
if (iFile != null && iFile.isAccessible()) {
sourceElement = iFile;
}
}