diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-06-25 22:30:40 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-06-25 22:30:40 +0400 |
commit | 2a6a8ca2153eb607a39fdc4df00148c249dcfa4c (patch) | |
tree | 18e55c7543d26b63a94667ff8a287efa8fd6619c /main/src/addins/MonoDevelop.Refactoring | |
parent | 6c7f565cc041ed210ea006a9555183371a683c8e (diff) |
fixed possible null reference.
Diffstat (limited to 'main/src/addins/MonoDevelop.Refactoring')
-rw-r--r-- | main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs index 50fa139d99..e49ca46691 100644 --- a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs +++ b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs @@ -282,7 +282,7 @@ namespace MonoDevelop.Refactoring ITypeDefinition cls = (ITypeDefinition) item; foreach (var rt in cls.BaseTypes) { var bc = rt.Resolve (ctx); - if (bc != null && bc.GetDefinition ().ClassType != ClassType.Interface/* TODO: && IdeApp.ProjectOperations.CanJumpToDeclaration (bc)*/) { + if (bc != null && bc.GetDefinition () != null && bc.GetDefinition ().ClassType != ClassType.Interface/* TODO: && IdeApp.ProjectOperations.CanJumpToDeclaration (bc)*/) { ainfo.Add (GettextCatalog.GetString ("Go to _base"), new System.Action (new GotoBase (ctx, (ITypeDefinition)item).Run)); break; } |