Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 403767

Summary: [Tree] Client crashes if you drag an item with FEEDBACK_SCROLL on empty space
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: tbuschto
Version: 2.0   
Target Milestone: 2.1 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ivan Furnadjiev CLA 2013-03-19 09:23:09 EDT
Steps to reproduce:
1. Start Examples Demo -> TreeViewer page
2. Start dragging an item in the empty space below the tree rows. Client crashes with:

Javascript error occurred:
Error: TypeError: Unable to get property 'getFlatIndex' of undefined or null reference

  description: Unable to get property 'getFlatIndex' of undefined or null reference
  number: -2146823281
  stack: TypeError: Unable to get property 'getFlatIndex' of undefined or null reference
   at _onScrollTimer (http://127.0.0.1:59057/rapdemo/rwt-resources/rap-client.js:53708:9)
   at _dispatchEvent (http://127.0.0.1:59057/rapdemo/rwt-resources/rap-client.js:6260:13)
   at dispatchEvent (http://127.0.0.1:59057/rapdemo/rwt-resources/rap-client.js:6190:7)
   at _oninterval (http://127.0.0.1:59057/rapdemo/rwt-resources/rap-client.js:6901:11)
   at wrap (http://127.0.0.1:59057/rapdemo/rwt-resources/rap-client.js:5718:11)
  Stack: TypeError: Unable to get property 'getFlatIndex' of undefined or null reference
   at _onScrollTimer (http://127.0.0.1:59057/rapdemo/rwt-resources/rap-client.js:53708:9)
   at _dispatchEvent (http://127.0.0.1:59057/rapdemo/rwt-resources/rap-client.js:6260:13)
   at dispatchEvent (http://127.0.0.1:59057/rapdemo/rwt-resources/rap-client.js:6190:7)
   at _oninterval (http://127.0.0.1:59057/rapdemo/rwt-resources/rap-client.js:6901:11)
   at wrap (http://127.0.0.1:59057/rapdemo/rwt-resources/rap-client.js:5718:11)
  Debug: on
Comment 1 Tim Buschtoens CLA 2013-03-19 09:38:09 EDT
It's reproducable in all browser, you just need the FEEDBACK_SCROLL effect
Comment 2 Tim Buschtoens CLA 2013-05-13 09:13:09 EDT
Fixed with commit ce57366269ee2be95a5c8ef6513d147453e8252a by checking for the item for null before computing the scroll position.