[MonoDevelop] Null reference exception in TextEditor.VAdjustmentValueChanged

simozzer SimonMoscrop at hotmail.com
Wed Nov 19 10:47:52 EST 2008


Hiya folks,

When using web projects I have experienced a recurring exception in
'/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor/TextEditor.cs'
which can be avoided with a small patch. My changes are highlighted in bold
below..


Alter the file:
/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor/TextEditor.cs


 void VAdjustmentValueChanged (object sender, EventArgs args)
                {
                        repaint = true;
//                              this.QueueDraw ();
//                              return;
                        if (buffer == null)
                                AllocateWindowBuffer (this.Allocation);

                        /* After calling AllocateWindoBuffer buffer still ==
null (because !IsRealized) */
                        if (buffer == null) return;

.....


Cheers

Mozzy

-- 
View this message in context: http://www.nabble.com/Null-reference-exception-in-TextEditor.VAdjustmentValueChanged-tp20582624p20582624.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.



More information about the Monodevelop-list mailing list