Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Error in Canvas.animateMove(left, top, callback)

$
0
0
v9.0p_2013-08-16/Pro Deployment (built 2013-08-16)

After updating I'm getting a null pointer exception in com.smartgwt.client.widgets.Canvas.animateMove(Can vas.java:4522) when using animateMove with 3 arguments.
Non of my arguments are null and the error doesn't occur if I either add a 4th argument (duration) or remove the callback argument.

I looked in Canvas and saw that in line 4522 it calls:
Code:

animateMove(left,top,callback,(Integer) null,null);
but the animateMove function has an int type in the 4th argument:
Code:

public native void animateMove(Integer left, Integer top, AnimationCallback callback, int duration, AnimationAcceleration acceleration)
So I'm guessing that is the cause of the error.

Viewing all articles
Browse latest Browse all 4756

Trending Articles