Bug 1865 - NullReferenceException from the texteditor
Summary: NullReferenceException from the texteditor
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-11-03 17:17 UTC by Alan McGovern
Modified: 2011-11-04 02: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 Alan McGovern 2011-11-03 17:17:25 UTC
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
at Mono.TextEditor.TextEditor.RedrawLine (Int32 logicalLine) [0x0000c] in /home/djahma/Downloads/monodevelop-2.8.1/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:740 
at Mono.TextEditor.LineUpdate.Update (Mono.TextEditor.TextEditor editor) [0x00000] in /home/djahma/Downloads/monodevelop-2.8.1/src/core/Mono.Texteditor/Mono.TextEditor/DocumentUpdateRequest.cs:70 
at Mono.TextEditor.TextEditor.DocumentUpdatedHandler (System.Object sender, System.EventArgs args) [0x0001d] in /home/djahma/Downloads/monodevelop-2.8.1/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:602 
at Mono.TextEditor.Document.CommitDocumentUpdate () [0x0001c] in /home/djahma/Downloads/monodevelop-2.8.1/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1317 
at Mono.TextEditor.Document.CommitLineUpdate (Int32 line) [0x0000c] in /home/djahma/Downloads/monodevelop-2.8.1/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1331 
at Mono.TextEditor.Document.CommitLineUpdate (Mono.TextEditor.LineSegment line) [0x00000] in /home/djahma/Downloads/monodevelop-2.8.1/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1336 
at Mono.TextEditor.TextEditor.HandleTextEditorDataDocumentMarkerChange (System.Object sender, Mono.TextEditor.TextMarkerEvent e) [0x0003f] in /home/djahma/Downloads/monodevelop-2.8.1/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:170 
at Mono.TextEditor.Document.OnMarkerRemoved (Mono.TextEditor.TextMarkerEvent e) [0x0000d] in /home/djahma/Downloads/monodevelop-2.8.1/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1156 
at Mono.TextEditor.Document.RemoveMarker (Mono.TextEditor.TextMarker marker, Boolean updateLine) [0x00071] in /home/djahma/Downloads/monodevelop-2.8.1/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1224 
at Mono.TextEditor.Document.RemoveMarker (Mono.TextEditor.TextMarker marker) [0x00000] in /home/djahma/Downloads/monodevelop-2.8.1/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1203 
at MonoDevelop.AssemblyBrowser.AssemblyBrowserWidget.<ClearReferenceSegment>m__B (Mono.TextEditor.UnderlineMarker m) [0x00000] in /home/djahma/Downloads/monodevelop-2.8.1/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs:848 
at System.Collections.Generic.List`1[Mono.TextEditor.UnderlineMarker].ForEach (System.Action`1 action) [0x00000] in <filename unknown>:0 
at MonoDevelop.AssemblyBrowser.AssemblyBrowserWidget.ClearReferenceSegment () [0x00007] in /home/djahma/Downloads/monodevelop-2.8.1/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs:848 
at MonoDevelop.AssemblyBrowser.AssemblyBrowserWidget.FillInspectLabel () [0x0003b] in /home/djahma/Downloads/monodevelop-2.8.1/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs:879 
at MonoDevelop.AssemblyBrowser.AssemblyBrowserWidget.LanguageComboboxhandleChanged (System.Object sender, System.EventArgs e) [0x0002c] in /home/djahma/Downloads/monodevelop-2.8.1/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs:289 
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0 
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0 
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0 
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0 

MonoDevelop: 2.8.1
Runtime: Mono 2.10.5 (Debian 2.10.5-1)
Operating System: Linux (Unix 3.0.0.12)
Distributor: Xamarin
Comment 2 Mike Krüger 2011-11-04 02:39:27 UTC
fixed.