geomatics-io / ObjectListView

ObjectListView is a .NET ListView wired on caffeine, guarana and steroids. More calmly, it is a C# wrapper around a .NET ListView, which makes the ListView much easier to use and teaches it lots of neat new tricks.
http://objectlistview.sourceforge.net/cs/index.html
GNU General Public License v3.0
115 stars 59 forks source link

Fix System.NullReferenceException in TreeRenderer.HandleHitTest #20

Closed ahmedosama007 closed 1 year ago

ahmedosama007 commented 1 year ago

Fix System.NullReferenceException in BrightIdeasSoftware.TreeListView.TreeRenderer.HandleHitTest

Exception Details:

[Error Code] 0x80004003

[Message] Object reference not set to an instance of an object.

[Source] ObjectListView

[Target Site] Void HandleHitTest(System.Drawing.Graphics, BrightIdeasSoftware.OlvListViewHitTestInfo, Int32, Int32)

[Stack Trace] at BrightIdeasSoftware.TreeListView.TreeRenderer.HandleHitTest(Graphics g, OlvListViewHitTestInfo hti, Int32 x, Int32 y) at BrightIdeasSoftware.BaseRenderer.HitTest(OlvListViewHitTestInfo hti, Int32 x, Int32 y) at BrightIdeasSoftware.ObjectListView.CalculateOwnerDrawnHitTest(OlvListViewHitTestInfo hti, Int32 x, Int32 y) at BrightIdeasSoftware.ObjectListView.OlvHitTest(Int32 x, Int32 y) at BrightIdeasSoftware.ObjectListView.BuildCellEvent(CellEventArgs args, Point location) at BrightIdeasSoftware.ObjectListView.HandleMouseMove(Point pt) at BrightIdeasSoftware.ObjectListView.OnMouseMove(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseMove(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ListView.WndProc(Message& m) at BrightIdeasSoftware.ObjectListView.WndProc(Message& m)