Bug 939 - Crash when accessing Project menu with MT Library selected in Solution Explorer
Summary: Crash when accessing Project menu with MT Library selected in Solution Explorer
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 2.8 Alpha 2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: 2.8
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2011-09-20 16:16 UTC by Joseph Hill
Modified: 2011-09-20 20:00 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 Joseph Hill 2011-09-20 16:16:31 UTC
If you have a MonoTouch library project open in your solution, and it is the currently selected project, clicking on the "Project" menu at the top of the screen will crash MonoDevelop with the error / exception below.  This does not happen in the MT application project is currently selected in solution explorer.

Steps to reproduce:
1) Open MonoDevelop
2) Open TweetStation
3) MonoTouch.Dialog in the Solution Explorer
4) Click on the "Project" menu at the top of the screen
5) Observe crash:

Error while updating status of command:
MonoDevelop.IPhone.IPhoneCommands.SelectSimulatorTarget.


System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.IPhone.PlistEditor.IPhoneManifestExtensions.GetMinimumOSVersion (MonoDevelop.MacDev.PlistEditor.PDictionary dict) [0x00000] in /private/tmp/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/PlistEditor/IPhoneManifestExtensions.cs:130 
  at MonoDevelop.IPhone.SelectSimulatorTargetHandler.Update (MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00072] in /private/tmp/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/IPhoneCommands.cs:74 
  at MonoDevelop.Components.Commands.CommandHandler.InternalUpdate (MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00000] in /private/tmp/source/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 /private/tmp/source/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 /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:747
Comment 1 Alan McGovern 2011-09-20 20:00:52 UTC
This was fixed with commit 7a785781 a couple of days ago. It was probably fallout from when we stopped incorrectly generating Info.plist files for libraries.