Bug 7603 - NRE when highlighting C# code in Mono.TextEditor.SegmentTree
Summary: NRE when highlighting C# code in Mono.TextEditor.SegmentTree
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: Macintosh Mac OS
: High normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-10-02 20:02 UTC by Frank A. Krueger
Modified: 2012-10-03 00:47 UTC (History)
1 user (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 Frank A. Krueger 2012-10-02 20:02:48 UTC
The following exception is thrown:

System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.TextEditor.SegmentTree`1[MonoDevelop.CSharp.Highlighting.CSharpSyntaxMode+StyledTreeSegment].RemoveListener (Mono.TextEditor.TextDocument doc) [0x0001d] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/81803ab2/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document/SegmentTree.cs:79 
  at MonoDevelop.CSharp.Highlighting.CSharpSyntaxMode+<HandleDocumentParsed>c__AnonStorey19+<HandleDocumentParsed>c__AnonStorey1A.<>m__9 (System.Object , System.EventArgs ) [0x000a1] in /Users/builder/data/lanes/monodevelop_private-lion-ui-refresh/81803ab2/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Highlighting/CSharpSyntaxMode.cs:161 
  at Gtk.Application+InvokeCB.Invoke () [0x00000] in <filename unknown>:0 
  at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in <filename unknown>:0
Comment 1 Mike Krüger 2012-10-03 00:47:58 UTC