Browse Source

fix null exception when the symbol is null

pull/15/merge
Eusebiu Marcu 14 years ago
parent
commit
b6f46a7c55
  1. 3
      src/Main/Base/Project/Src/Editor/Commands/GoToDefinition.cs

3
src/Main/Base/Project/Src/Editor/Commands/GoToDefinition.cs

@ -15,6 +15,9 @@ namespace ICSharpCode.SharpDevelop.Editor.Commands
{ {
protected override void RunImpl(ITextEditor editor, int offset, ResolveResult symbol) protected override void RunImpl(ITextEditor editor, int offset, ResolveResult symbol)
{ {
if (symbol == null)
return;
FilePosition pos = symbol.GetDefinitionPosition(); FilePosition pos = symbol.GetDefinitionPosition();
if (pos.IsEmpty) { if (pos.IsEmpty) {
IEntity entity; IEntity entity;

Loading…
Cancel
Save