Bug 11169 - NRE in TaskStore.EndTaskUpdates()
Summary: NRE in TaskStore.EndTaskUpdates()
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 4.0.2
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-03-14 16:41 UTC by Jeffrey Stedfast
Modified: 2015-08-25 06:59 UTC (History)
2 users (show)

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:

Description Jeffrey Stedfast 2013-03-14 16:41:33 UTC
System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Ide.Tasks.TaskStore.EndTaskUpdates () [0x0002c] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskStore.cs:234 
  at MonoDevelop.Ide.Tasks.TaskStore.RemoveRange (IEnumerable`1 tasks) [0x00053] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskStore.cs:125 
  at MonoDevelop.Ide.Tasks.CommentTasksView.UpdateCommentTags (MonoDevelop.Projects.Solution wob, FilePath fileName, IEnumerable`1 tagComments) [0x00240] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs:300 
  at MonoDevelop.Ide.Tasks.CommentTasksView+<LoadSolutionContents>c__AnonStorey4F.<>m__6A (System.Object ) [0x00075] in /Users/builder/data/lanes/monodevelop-lion-bs1/2be11af9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/CommentTasksView.cs:209
Comment 1 Jeffrey Stedfast 2013-03-14 16:43:11 UTC
Happens every time I open my MonoDevelop.mdw
Comment 2 Jeffrey Stedfast 2013-03-14 16:45:44 UTC
Okay, restarting XS seems to have "fixed" it.

All I can think of is that somehow tasksRemoved was null, and so oldTasksRemoved is now null and dereferencing it for the Count > 0 check is what is throwing the NRE