Bug 3019 - Exception when opening xib from MD
Summary: Exception when opening xib from MD
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 2.8.6
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2012-01-23 17:15 UTC by Jackson Harper
Modified: 2012-03-14 15:22 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 Jackson Harper 2012-01-23 17:15:58 UTC
Double clicked a xib, got this exception. 


System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Projects.Dom.Parser.ProjectDom+<InternalGetSubclassesSafe>c__Iterator34.MoveNext () [0x00115] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.2/c83797ae/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDom.cs:501 
  at MonoDevelop.Projects.Dom.Parser.ProjectDom+<GetSubclasses>c__Iterator35.MoveNext () [0x0008d] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.2/c83797ae/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDom.cs:520 
  at MonoDevelop.MacDev.ObjCIntegration.NSObjectInfoService+<GetRegisteredObjects>c__Iterator2.MoveNext () [0x0010e] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.2/c83797ae/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectInfoService.cs:136 
  at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.Update () [0x00111] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.2/c83797ae/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectProjectInfo.cs:83 
  at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.Update (Boolean force) [0x0000c] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.2/c83797ae/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectProjectInfo.cs:66 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateTypes (IProgressMonitor monitor, Boolean force) [0x00034] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.2/c83797ae/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:304
Comment 1 Jackson Harper 2012-01-23 17:20:28 UTC
xcode sync log:


meep:edictate jackson$ cat ~/Library/Logs/MonoDevelop-2.8/Xcode4Sync.log
Opening file /Users/jackson/Projects/edictate/edictate/eDictate3/LoginViewController_iPad.xib
Enabled syncing for project: eDictate4
Updating Objective-C type information
   ERROR: Error updating Objective-C type information. Object reference not set to an instance of an object
Closing project: False
Deleting temp project directories
Xcode still running, leaving empty directory in place to prevent name re-use
Disabled syncing for project: eDictate4
Opening file /Users/jackson/Projects/edictate/edictate/eDictate3/RecordingViewController_iPad.xib
Enabled syncing for project: eDictate4
Updating Objective-C type information
   ERROR: Error updating Objective-C type information. Object reference not set to an instance of an object
Closing project: False
Deleting temp project directories
Xcode still running, leaving empty directory in place to prevent name re-use
Disabled syncing for project: eDictate4
Opening file /Users/jackson/Projects/edictate/edictate/eDictate3/LoginViewController.xib
Enabled syncing for project: eDictate4
Updating Objective-C type information
   ERROR: Error updating Objective-C type information. Object reference not set to an instance of an object
Closing project: False
Deleting temp project directories
Xcode still running, leaving empty directory in place to prevent name re-use
Disabled syncing for project: eDictate4
Opening file /Users/jackson/Projects/edictate/edictate/eDictate3/LoginViewController_iPad.xib
Enabled syncing for project: eDictate4
Updating Objective-C type information
   ERROR: Error updating Objective-C type information. Object reference not set to an instance of an object
Closing project: False
Deleting temp project directories
Xcode still running, leaving empty directory in place to prevent name re-use
Disabled syncing for project: eDictate4
Comment 2 Jeffrey Stedfast 2012-01-24 15:53:25 UTC
Mike: any idea why the IType.SourceProjectDom would be null in ProjectDom.cs on line 501?
Comment 3 Jeffrey Stedfast 2012-03-14 15:22:45 UTC
This has been fixed