Bug 1352 - System.NullReferenceException while switching tabs from one program to the other
Summary: System.NullReferenceException while switching tabs from one program to the other
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 2.8
Hardware: PC Windows
: High normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2011-10-07 17:22 UTC by sgtsimmons
Modified: 2012-01-20 11:26 UTC (History)
3 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 sgtsimmons 2011-10-07 17:22:11 UTC
System.NullReferenceException: Object reference not set to an instance of an object.

   at MonoDevelop.Ide.Gui.Pads.ProjectPad.ProjectNodeBuilder.GetParentObject(Object dataObject)

   at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.GetNodeAtObject(Object dataObject, Boolean createTreeBranch)

   at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.GetNodeAtObject(Object dataObject, Boolean createTreeBranch)

   at MonoDevelop.Ide.Gui.Pads.ProjectPad.ProjectSolutionPad.SelectActiveFile()

   at MonoDevelop.Ide.DispatchService.GuiDispatch(MessageHandler cb)

   at MonoDevelop.Ide.Gui.Pads.ProjectPad.ProjectSolutionPad.OnWindowChanged(Object ob, EventArgs args)

   at System.EventHandler.Invoke(Object sender, EventArgs e)

   at MonoDevelop.Ide.Gui.Workbench.OnDocumentChanged(Object s, EventArgs a)

   at MonoDevelop.Ide.Gui.DefaultWorkbench.OnActiveWindowChanged(Object sender, EventArgs e)

   at Gtk.Notebook.SwitchPageSignalCallback(IntPtr arg0, IntPtr arg1, UInt32 arg2, IntPtr gch)
Comment 1 Mike Krüger 2011-11-15 15:08:48 UTC
lluis: Wasn't that fixed a while ago ?
Comment 2 Jeffrey Stedfast 2012-01-20 11:26:07 UTC
There don't appear to have been any changes to GetParentObject in ages.

In any event, I fixed the code to check for null before dereferencing. Should be fixed now.