Bug 2202 - NRE on Rebuild
Summary: NRE on Rebuild
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2011-11-25 15:09 UTC by Marek Safar
Modified: 2011-11-29 07:08 UTC (History)
2 users (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 Marek Safar 2011-11-25 15:09:30 UTC
Get https://github.com/vc3/Afterthought project and open main solution in MD. Click Rebuild.

System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Projects.SolutionFolder.OnClean (IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00083] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionFolder.cs:595 
  at MonoDevelop.Projects.SolutionFolder.OnRunTarget (IProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00029] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionFolder.cs:537 
  at MonoDevelop.Projects.DefaultProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:687 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0003c] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:129 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0003c] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:129 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0003c] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:129 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0003c] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:129 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0003c] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:129 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0003c] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:129 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0003c] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:129 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.SolutionItem.RunTarget (IProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItem.cs:448 
  at MonoDevelop.Projects.SolutionItem.Clean (IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00066] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItem.cs:469 
  at MonoDevelop.Projects.Solution.OnClean (IProgressMonitor monitor, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Solution.cs:508 
  at MonoDevelop.Projects.WorkspaceItem.OnRunTarget (IProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00029] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/WorkspaceItem.cs:388 
  at MonoDevelop.Projects.DefaultProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:684 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.Solution item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:139 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.WorkspaceItem item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:145 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00029] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:127 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.Solution item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:139 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.WorkspaceItem item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:145 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00029] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:127 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.Solution item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:139 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.WorkspaceItem item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:145 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00029] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:127 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.Solution item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:139 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.WorkspaceItem item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:145 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00029] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:127 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.Solution item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:139 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.WorkspaceItem item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:145 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00029] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:127 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.Solution item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:139 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.WorkspaceItem item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:145 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00029] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:127 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.Solution item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:139 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, MonoDevelop.Projects.WorkspaceItem item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:145 
  at MonoDevelop.Projects.ProjectServiceExtension.Clean (IProgressMonitor monitor, IBuildTarget item, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00029] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:127 
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (IProgressMonitor monitor, IBuildTarget item, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectServiceExtension.cs:115 
  at MonoDevelop.Projects.WorkspaceItem.RunTarget (IProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/WorkspaceItem.cs:243 
  at MonoDevelop.Ide.ProjectOperations.CleanAsync (IBuildTarget entry, IProgressMonitor monitor, ITimeTracker tt) [0x0005f] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs:927