Bug 261 - plist editor is broken
Summary: plist editor is broken
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2011-08-11 06:41 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2012-02-22 09:33 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 Rolf Bjarne Kvinge [MSFT] 2011-08-11 06:41:00 UTC
Create new MT project from a template.
Double-click the Info.plist

System.NullReferenceException: Object reference not set to an instance of an object
  at MonoMac.Foundation.NSArray.ArrayFromHandle[NSObject] (IntPtr handle) [0x0004d] in /Users/michael/Mono/maccore/src/Foundation/NSArray.cs:150 
  at MonoDevelop.MacDev.PlistEditor.PDictionary.Conv (MonoMac.Foundation.NSObject val) [0x00082] in /mono/ios/monodevelop/monodevelop/main/src/addins/MonoDevelop.MacDev/MonoDevelop.MacDev.PlistEditor/PListObject.cs:400 
  at MonoDevelop.MacDev.PlistEditor.PDictionary.Reload (System.String fileName) [0x0004b] in /mono/ios/monodevelop/monodevelop/main/src/addins/MonoDevelop.MacDev/MonoDevelop.MacDev.PlistEditor/PListObject.cs:375 
  at MonoDevelop.MacDev.PlistEditor.PListEditorViewContent.Load (System.String fileName) [0x00007] in /mono/ios/monodevelop/monodevelop/main/src/addins/MonoDevelop.MacDev/MonoDevelop.MacDev.PlistEditor/PListEditorViewContent.cs:57 
  at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke (System.String fileName) [0x00102] in /mono/ios/monodevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1044
Comment 1 Mike Krüger 2011-08-11 09:13:48 UTC
Can't reproduce it - are you using a master version of mono ? 
I've added some checks so that won't happen anymore, but it's a bug that's somewhere different.

If that happens again I could need the project. (y even if it's created by a template)
Comment 2 Rolf Bjarne Kvinge [MSFT] 2011-08-11 09:17:58 UTC
I use master MonoDevelop, and your fix fixed it.