[Mono-bugs] [Bug 490705] New: System.NullReferenceException when starting to drag a node in a treeview
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Mar 31 09:37:27 EDT 2009
https://bugzilla.novell.com/show_bug.cgi?id=490705
Summary: System.NullReferenceException when starting to drag a
node in a treeview
Classification: Mono
Product: Mono: Runtime
Version: 2.2.x
Platform: i686
OS/Version: Windows XP
Status: NEW
Severity: Critical
Priority: P5 - None
Component: JIT
AssignedTo: lupus at novell.com
ReportedBy: jhmgbl2 at t-online.de
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.5)
Gecko/2008120122 Firefox/3.0.5 (.NET CLR 3.5.30729)
System.NullReferenceException: Object reference not set to an instance of an ob
ect
at System.Windows.Forms.TreeView.MouseMoveHandler (System.Object sender, Syst
m.Windows.Forms.MouseEventArgs e) [0x0015a] in C:\cygwin\tmp\monobuild\build\BU
LD\mono-2.2\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TreeView.cs:22
7
at (wrapper delegate-invoke) System.Windows.Forms.MouseEventHandler:invoke_vo
d__this___object_MouseEventArgs (object,System.Windows.Forms.MouseEventArgs)
at System.Windows.Forms.Control.OnMouseMove (System.Windows.Forms.MouseEventA
gs e) [0x0001c] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\mcs\class\Manag
d.Windows.Forms\System.Windows.Forms\Control.cs:6392
at System.Windows.Forms.Control.WmMouseMove (System.Windows.Forms.Message& m)
[0x00064] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\mcs\class\Managed.Win
ows.Forms\System.Windows.Forms\Control.cs:5793
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x
01d4] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\mcs\class\Managed.Windows
Forms\System.Windows.Forms\Control.cs:5397
at System.Windows.Forms.TreeView.WndProc (System.Windows.Forms.Message& m) [0
0006b] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\mcs\class\Managed.Window
Forms\System.Windows.Forms\TreeView.cs:1182
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows
Forms.Message& m) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\mcs
class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:228
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.F
rms.Message& m) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\mcs\c
ass\Managed.Windows.Forms\System.Windows.Forms\Control.cs:209
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wP
ram, IntPtr lParam) [0x00085] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.2\m
s\class\Managed.Windows.Forms\System.Windows.Forms\NativeWindow.cs:242
The Code of the mouse_move_event is:
Const CodeLoc As String = "tvMed_MouseMove" : gStatus = CodeLoc & " Start)"
Dim n As System.Windows.Forms.TreeNode
gStatus = CodeLoc & " GetNodeAt"
Try
n = tvMed.GetNodeAt(eventArgs.Location)
If n Is Nothing = False AndAlso eventArgs.Button =
Windows.Forms.MouseButtons.None Then
gStatus = CodeLoc & " HotTracking"
If n.ImageIndex = modGlobal.NodeTypes.Vergleichsmittel Then
tvMed.HotTracking = True
Else
tvMed.HotTracking = False
End If
End If
Catch ex As Exception
#If Linux Then
LinuxErr(ex, CodeLoc)
#Else
Throw New ApplicationException(CodeLoc & " Error!", ex)
#End If
End Try
Reproducible: Always
Steps to Reproduce:
1. Download
http://downloads.sourceforge.net/repetitnettsqli/Repetit.Net.T.Mono_0_6_0_13.tar.gz?use_mirror=heanet
2. Install and run with mono 2.2 (Windows or Linux)
3. Enter some Data in the database and start to drag a "Symptome"-Node
Actual Results:
the program crashes
Expected Results:
move node to other parentnode
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list