Bug 651 - NullReferenceException thrown by MonoDevelop.Ide.Commands.ProjectCommands.RunEntryWithList
Summary: NullReferenceException thrown by MonoDevelop.Ide.Commands.ProjectCommands.Run...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 2.6 RC 1
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Alan McGovern
Depends on:
Reported: 2011-09-06 12:03 UTC by Ken Budris
Modified: 2011-10-06 05:54 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 Ken Budris 2011-09-06 12:03:43 UTC
I just upgraded to Mono 2.10.5_0 & MT, now MD 2.6 RC2 is throwing up this error pretty frequently.

System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.IPhone.IPhoneFramework+<GetSimulatorTargets>c__Iterator4.MoveNext () [0x000f7] in /sources/monodevelop/extras/MonoDevelop.IPhone/MonoDevelop.IPhone/IPhoneFramework.cs:266 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator27`2[MonoDevelop.IPhone.IPhoneSimulatorTarget,MonoDevelop.Core.Execution.IExecutionMode].MoveNext () [0x0007e] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.Core/System.Linq/Enumerable.cs:2228 
  at MonoDevelop.Ide.Execution.ExecutionModeCommandService.GetDataContext () [0x00059] in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/ExecutionModeCommandService.cs:358 
  at MonoDevelop.Ide.Execution.ExecutionModeCommandService+<GetCustomModes>c__Iterator8.MoveNext () [0x0003b] in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/ExecutionModeCommandService.cs:188 
  at System.Collections.Generic.List`1[MonoDevelop.Ide.Execution.CustomExecutionMode].AddEnumerable (IEnumerable`1 enumerable) [0x0001a] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System.Collections.Generic/List.cs:126 
  at System.Collections.Generic.List`1[MonoDevelop.Ide.Execution.CustomExecutionMode]..ctor (IEnumerable`1 collection) [0x0002f] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System.Collections.Generic/List.cs:63 
  at MonoDevelop.Ide.Execution.ExecutionModeCommandService.GetExecutionModeCommands (MonoDevelop.Ide.Execution.CommandExecutionContext ctx, Boolean includeDefault, Boolean includeDefaultCustomizer) [0x00006] in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/ExecutionModeCommandService.cs:138 
  at MonoDevelop.Ide.Execution.ExecutionModeCommandService.GenerateExecutionModeCommands (MonoDevelop.Projects.SolutionEntityItem project, MonoDevelop.Ide.Execution.CanExecuteDelegate runCheckDelegate, MonoDevelop.Components.Commands.CommandArrayInfo info) [0x0000a] in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Execution/ExecutionModeCommandService.cs:69 
  at MonoDevelop.Ide.Commands.RunEntryWithHandler.Update (MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00026] in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ProjectCommands.cs:365 
  at MonoDevelop.Components.Commands.CommandHandler.InternalUpdate (MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00000] in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:52 
  at MonoDevelop.Components.Commands.CommandManager.DefaultUpdateCommandInfo (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info) [0x00057] in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:777 
  at MonoDevelop.Components.Commands.CommandManager.GetCommandInfo (System.Object commandId, MonoDevelop.Components.Commands.CommandTargetRoute targetRoute) [0x001a9] in /sources/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:747
Comment 1 Alan McGovern 2011-09-19 09:19:02 UTC
Does this error show up the first time you right-click on a project in the solution pane after loading up your solution? If not, what do you normally do to get this?
Comment 2 Ken Budris 2011-09-21 16:40:25 UTC
This seems to happen the first time I right-click on a project after loading the solution.
Comment 3 Alan McGovern 2011-09-29 12:50:20 UTC
I think this issue has been fixed with a newer monotouch and/or monodevelop because it's impossible to reproduce it anymore. Could you try the latest release in the 2.8 beta series as I believe it'll fix the issue.
Comment 4 Ken Budris 2011-10-04 08:36:04 UTC
Auto updates don't work on my system. Is there a URL I can browse to for the MonoDevelop 2.8 beta?
Comment 5 Ken Budris 2011-10-05 17:11:37 UTC
It looks like this issue has been fixed in the MonoDevelop 2.8 release.
Comment 6 Alan McGovern 2011-10-06 05:54:28 UTC
That's great, thanks a lot for letting us know. I hate closing bugs I haven't been able to reproduce myself as they could still exist for the person who reported them. Do let us know if you have any further issues.