mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Fix for 187998: [C Editor Hyperlink] NPE
This commit is contained in:
parent
8d8105f635
commit
f16a5f1bde
1 changed files with 4 additions and 1 deletions
|
@ -61,7 +61,10 @@ public class CElementHyperlinkDetector implements IHyperlinkDetector {
|
|||
return null;
|
||||
|
||||
IWorkingCopy workingCopy = CUIPlugin.getDefault().getWorkingCopyManager().getWorkingCopy(editor.getEditorInput());
|
||||
|
||||
if (workingCopy == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
IIndex index;
|
||||
try {
|
||||
index = CCorePlugin.getIndexManager().getIndex(workingCopy.getCProject(),
|
||||
|
|
Loading…
Add table
Reference in a new issue