Gotlifebar / gwtquery-plugins

Automatically exported from code.google.com/p/gwtquery-plugins
0 stars 0 forks source link

Null Pointer Exception in DragContext #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
NullPointerException in the DragContext class (line 104).

To replicate: When a widget is dropped on its parent, if you call 
removeFromParent() on the dropped widget, you get the NPE:
My code was similar to the showcase here: 
http://code.google.com/p/gwtquery-plugins/source/browse/trunk/droppable/sample/s
rc/main/java/gwtquery/plugins/droppable/client/gwtsimplesample/GwtSimpleSample.j
ava  (line 154 removeFromParent() is called). 
What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
1.0.5

Please provide any additional information below.
There is no apparent functionality lost, though when in GWT Dev Mode it 
generates a lot of stack traces.

Original issue reported on code.google.com by checke...@gmail.com on 16 Jul 2012 at 6:56

GoogleCodeExporter commented 8 years ago
Seeing the same, looks like DragContext is having trouble getting the 
DraggableHandler in it's init() method.  Seeing this when I extend 
DraggableWidget add it to a Panel, then call panel.remove(extendedWidget)

Original comment by AYapejian on 26 Aug 2012 at 2:45