1
0
Fork 0
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:
Anton Leherbauer 2007-05-21 09:02:27 +00:00
parent 8d8105f635
commit f16a5f1bde

View file

@ -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(),