Community
Participate
Working Groups
Build Identifier: 1.4M7 The following error often occurs while dragging a tree item between two trees. Javascript error occurred: 'null' ist Null oder kein Objekt I can reproduce the problem with Control Demo using IE8 (32 or 64bit) but not with Firefox 3.6 on Windows 7 64bit with RAP 1.4 M7. Reproducible: Sometimes Steps to Reproduce: 1. start control demo and select Drag & Drop Tab 2. select tree as drag and as drop source 3. drag a tree item and move the mouse from the one tree to the other, back again, over the target tree items, ... => after some time (sometimes it occurs immediately, sometimes not) the Js error is diplayed
I can reproduce it with Controls Demo/IE9 too.
Created attachment 195752 [details] JavaScript test case This is a test case to reproduce the problem.
Created attachment 195826 [details] Proposed fix After debugging together with Tim, we found two problems in DNDSupport.js: 1. The order of mouse events ( out, move, over ) differs between browsers, which leads to wrong _currentTargetWidget. We fixed this by ensuring the correct _currentTargetWidget in DNDSupport#_dragOutHandler. 2. DNDSupport#_getCurrentFeedbackTarget returns wrong result in case of fast move over another tree or table. Fixed in DNDSupport#_getCurrentFeedbackTarget by checking if _currentDropTarget contains _currentTargetWidget. JS test from the previous patch is included too.
Comment on attachment 195826 [details] Proposed fix Solution is good, one line is indented too much i think.
Applied patch to CVS HEAD and v14_Maintenance.
Today I have updated to RAP 1.4 RC2. The bug fix solves this issue. All works fine in Control Demo and in our own application. => bug fix verfied with 1.4 RC2