mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +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,6 +61,9 @@ public class CElementHyperlinkDetector implements IHyperlinkDetector {
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
IWorkingCopy workingCopy = CUIPlugin.getDefault().getWorkingCopyManager().getWorkingCopy(editor.getEditorInput());
|
IWorkingCopy workingCopy = CUIPlugin.getDefault().getWorkingCopyManager().getWorkingCopy(editor.getEditorInput());
|
||||||
|
if (workingCopy == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
IIndex index;
|
IIndex index;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue