diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-10-07 10:28:32 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-10-07 18:05:48 +0400 |
commit | 9125cf87ca1c8333f1a61b9dd52f9a94d23bc437 (patch) | |
tree | 623a5fa7c690eb1d3ed6fa5c7650352524fbb1a5 /main/src/addins/MonoDevelop.Refactoring | |
parent | a1135fe42fd6584a643522c5233dde286d64178c (diff) |
Fixed 'Bug 1302 - Exception while trying to go to base constructor'.
Diffstat (limited to 'main/src/addins/MonoDevelop.Refactoring')
-rw-r--r-- | main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs index b2121508cb..76fc7f45f6 100644 --- a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs +++ b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs @@ -318,8 +318,10 @@ namespace MonoDevelop.Refactoring if (m.IsConstructor && m.Parameters.Count == paramCount) baseConstructor = m; } - Refactorer refactorer2 = new Refactorer (ctx, pinfo, baseConstructor.DeclaringType, baseConstructor, null); - ainfo.Add (GettextCatalog.GetString ("Go to _base"), new RefactoryOperation (refactorer2.GoToBase)); + if (baseConstructor != null) { + Refactorer refactorer2 = new Refactorer (ctx, pinfo, baseConstructor.DeclaringType, baseConstructor, null); + ainfo.Add (GettextCatalog.GetString ("Go to _base"), new RefactoryOperation (refactorer2.GoToBase)); + } } if (item is IType) { |