Bug 887 - Refactory operations
Summary: Refactory operations
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 2.6
Hardware: Macintosh Mac OS
: --- major
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-09-19 02:10 UTC by Matthijs Koopman
Modified: 2011-09-19 06:29 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Matthijs Koopman 2011-09-19 02:10:49 UTC
When I try to apply the "Remove unused usings" method the IDE will cause the following error:

System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Refactoring.RefactorImports.RemoveUnusedImportsRefactoring.PerformChanges (MonoDevelop.Refactoring.RefactoringOptions options, System.Object properties) [0x0008f] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring.RefactorImports/RemoveUnusedImportsRefactoring.cs:62 
  at MonoDevelop.Refactoring.RefactoringOperation.Run (MonoDevelop.Refactoring.RefactoringOptions options) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringOperation.cs:68 
  at MonoDevelop.Refactoring.RefactorImports.RemoveUnusedImportsHandler.Run (MonoDevelop.Refactoring.RefactoringOptions options) [0x00012] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring.RefactorImports/RefactorImportsHandler.cs:55 
  at MonoDevelop.Refactoring.AbstractRefactoringCommandHandler.Run (System.Object data) [0x00080] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/AbstractRefactoringCommandHandler.cs:65 
  at MonoDevelop.Refactoring.AbstractRefactoringCommandHandler.Start (System.Object data) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/AbstractRefactoringCommandHandler.cs:41 
  at MonoDevelop.Refactoring.CurrentRefactoryOperationsHandler+<Update>c__AnonStorey28.<>m__27 () [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs:231 
  at MonoDevelop.Refactoring.CurrentRefactoryOperationsHandler.Run (System.Object data) [0x0000d] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs:77 
  at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:42 
  at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info, System.Object dataItem, System.Object target, CommandSource source) [0x00076] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:649 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002d1] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:619
Comment 1 Mike Krüger 2011-09-19 06:29:20 UTC
fixed in 2.8