[Mono-bugs] [Bug 640411] New: NullReferenceException in System.Windows.Forms.WebBrowser

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Sep 19 14:27:19 EDT 2010


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

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


           Summary: NullReferenceException in
                    System.Windows.Forms.WebBrowser
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: PC
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: fn30762 at fmi.uni-sofia.bg
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:
NullReferenceException in System.Windows.Forms.WebBrowser control when using
DocumentText property.

Steps to reproduce the problem:
1. 

System.Windows.Forms.WebBrowser webBrowser1 = new ...

this.webBrowser1.DocumentText =
"<ul><li>Introduction</li><li>Connect</li><li>Add/Remove repository</li></ul>";

2. 


Actual Results:

System.NullReferenceException: Object reference not set to an instance of an
obj
ect
  at Mono.Mozilla.DOM.Node.set_node (nsIDOMNode value) [0x00000] in
C:\cygwin\tm
p\monobuild\build\BUILD\mono-2.6.7\mcs\class\Mono.WebBrowser\Mono.Mozilla\DOM\No
de.cs:43
  at Mono.Mozilla.DOM.Element.set_node (nsIDOMElement value) [0x00000] in
C:\cyg
win\tmp\monobuild\build\BUILD\mono-2.6.7\mcs\class\Mono.WebBrowser\Mono.Mozilla\
DOM\Element.cs:38
  at Mono.Mozilla.DOM.HTMLElement.set_node (nsIDOMHTMLElement value) [0x00000]
i
n
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.7\mcs\class\Mono.WebBrowser\Mono.
Mozilla\DOM\HTMLElement.cs:39
  at Mono.Mozilla.DOM.HTMLElement.set_OuterHTML (System.String value) [0x00081]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.7\mcs\class\Mono.WebBrowser\Mono
Mozilla\DOM\HTMLElement.cs:113
  at System.Windows.Forms.WebBrowser.set_DocumentText (System.String value)
[0x0
0025] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.7\mcs\class\Managed.Window
s.Forms\System.Windows.Forms\WebBrowser.cs:130
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.WebBrowser:set_Do
cumentText (string)
  at SesameWindowsClient.HelpForm..ctor () [0x00016] in
SesameWindowsClient\Help
Form.cs:20
  at (wrapper remoting-invoke-with-check) SesameWindowsClient.HelpForm:.ctor ()
  at SesameWindowsClient.MainWindow.helpToolStripMenuItem1_Click (System.Object
sender, System.EventArgs e) [0x00001] in SesameWindowsClient\MainWindow.cs:2649


Expected Results:
Html visualization of supplied html.

On .NET framework it works fine.

How often does this happen? 
Always.

Additional Information:
I am using Mono tools. Mono 2.6.7

Project: http://sourceforge.net/projects/sesamewinclient

-- 
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