mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-25 09:13:48 +02:00
Bug 403409. Organize Includes throws IllegalStateException
This commit is contained in:
parent
48c9cc0b73
commit
41522141d9
1 changed files with 9 additions and 7 deletions
|
@ -965,6 +965,7 @@ public class IncludeOrganizer {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (!request.isResolved()) {
|
||||
IPath header = fHeaderChooser.chooseHeader(request.getBinding().getName(), candidatePaths);
|
||||
if (header == null)
|
||||
throw new OperationCanceledException();
|
||||
|
@ -975,6 +976,7 @@ public class IncludeOrganizer {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private IPath getPath(IIndexFileLocation location) {
|
||||
return IndexLocationFactory.getAbsolutePath(location);
|
||||
|
|
Loading…
Add table
Reference in a new issue