Ticket #1992 (closed feature: duplicate)

Opened 4 years ago

Last modified 4 years ago

Null-reference errors when using onComplete on the DragFeature control

Reported by: bjornharrtell Owned by:
Priority: minor Milestone: 2.9 Release
Component: general Version: SVN
Keywords: Cc:
State:

Description

I sometimes get null-reference errors when using onComplete on the DragFeature control. The issue seems that this.feature on the control is null at the moment of the handler beeing called and depends on timing when interacting with the control/feature. My guess is that upFeature gets called before doneDragging in some cases. I've reproduced the error in IE7 and Firefox and it seems to happen more often when dragging the feature with a fast movement.

Proposed patch removes the line nulling the this.feature in upFeature, passing tests.

Attachments

DragFeature.patch Download (0.8 KB) - added by bjornharrtell 4 years ago.

Change History

Changed 4 years ago by bjornharrtell

Changed 4 years ago by bjornharrtell

  • status changed from new to closed
  • resolution set to duplicate

crschmidt tipped me about #1196 which described the issue ages ago. Attaching patch there and closing this as dupe.

Note: See TracTickets for help on using tickets.