Bug 3686 - Error when switching projects in MonoDevelop after opening first project's .xib in Xcode
Summary: Error when switching projects in MonoDevelop after opening first project's .x...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 2.8 beta 3
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2012-02-29 12:33 UTC by PJ
Modified: 2015-08-13 17:39 UTC (History)
1 user (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 PJ 2012-02-29 12:33:06 UTC
MD 2.8.8.0 RC6
MT 5.2.6
Mono 2.10.9

Steps to reproduce:
1) Open a monotouch project
2) Open a .xib in this project (to launch xcode)
3) Open a different solution in MonoDevelop


System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.MacDev.XcodeSyncing.XcodeSyncBackContext.MergeExistingTypes (System.Collections.Generic.Dictionary`2 designerFiles) [0x00006] in /Users/builder/data/lanes/monodevelop-mac-2.8.8.0/cca4e32e/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeSyncBackContext.cs:183 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeSyncBackContext.GetTypeUpdates (IProgressMonitor monitor, System.CodeDom.Compiler.CodeDomProvider provider, System.Collections.Generic.Dictionary`2& newTypes, System.Collections.Generic.Dictionary`2& newFiles) [0x0013c] in /Users/builder/data/lanes/monodevelop-mac-2.8.8.0/cca4e32e/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeSyncBackContext.cs:112 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateCliTypes (IProgressMonitor monitor, MonoDevelop.MacDev.XcodeSyncing.XcodeSyncBackContext context, System.Boolean& typesAdded) [0x00039] in /Users/builder/data/lanes/monodevelop-mac-2.8.8.0/cca4e32e/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:725 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.SyncXcodeChanges (IProgressMonitor monitor) [0x0004c] in /Users/builder/data/lanes/monodevelop-mac-2.8.8.0/cca4e32e/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:439