mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 12:55:40 +02:00
Bug 342535 - [disassembly] Don't resolve files to an inaccessible resource
This commit is contained in:
parent
9b7e344590
commit
e1cfb22cba
1 changed files with 1 additions and 1 deletions
|
@ -2872,7 +2872,7 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
|
||||||
final IPath location= ((IStorage) sourceElement).getFullPath();
|
final IPath location= ((IStorage) sourceElement).getFullPath();
|
||||||
if (location != null) {
|
if (location != null) {
|
||||||
IFile iFile = ResourceLookup.selectFileForLocation(location, null);
|
IFile iFile = ResourceLookup.selectFileForLocation(location, null);
|
||||||
if (iFile != null) {
|
if (iFile != null && iFile.isAccessible()) {
|
||||||
sourceElement = iFile;
|
sourceElement = iFile;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue