[Mono-bugs] [Bug 649468] New: [PATCH] Nullref when clearing TextBox that hasn't been shown yet

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 26 22:26:18 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=649468

https://bugzilla.novell.com/show_bug.cgi?id=649468#c0


           Summary: [PATCH] Nullref when clearing TextBox that hasn't been
                    shown yet
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: x86
        OS/Version: RHEL 5
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: latifer at streamgrid.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7

When trying to run Radegast (sources and binaries available at
http://code.google.com/p/radegast/downloads/list ) with mono-2.8 both the
release and current git master I get the following exception from the WinForms:

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
 at System.Windows.Forms.Document.LineTagToCharIndex (System.Windows.Forms.Line
line, Int32 pos) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.RichTextBox.set_SelectionColor (Color value) [0x00000]
in <filename unknown>:0 at (wrapper remoting-invoke-with-check)
System.Windows.Forms.RichTextBox:set_SelectionColor (System.Drawing.Color)
 at Radegast.RichTextBoxPrinter.set_ForeColor (Color value) [0x00000] in
<filename unknown>:0
 at Radegast.ChatTextManager.ProcessBufferItem (Radegast.ChatBufferItem item,
Boolean addToBuffer) [0x00000] in <filename unknown>:0
 at Radegast.ChatTextManager.ReprintAllText () [0x00000] in <filename
unknown>:0

Bisected the problem to commit efac449236dd0b9d34daddecf36f2f2a888faf81 and
made a patch that fixes the problem
http://github.com/lkalif/mono/commit/cbba5894f0844951319af0892da6b0a1d863612c

Reproducible: Always

Steps to Reproduce:
1. Start Radegast
2.
3.
Actual Results:  
Nullref exception

Expected Results:  
Program starts

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list