google-code-export / mgwt

Automatically exported from code.google.com/p/mgwt
Other
1 stars 0 forks source link

MultiTapRecognizer : NullPointerException #296

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
        FlowPanel panel = new FlowPanel();
        ...
        TouchDelegate touchDelegate = new TouchDelegate(panel);
        MultiTapRecognizer recognizer = new MultiTapRecognizer(touchDelegate, 2);
        panel.addHandler(new MultiTapHandler() {

            @Override
            public void onMultiTap(MultiTapEvent event) {               
            }
        }, MultiTapEvent.getType());
        touchDelegate.addTouchHandler(recognizer);

What is the expected output? What do you see instead?

Caused by: java.lang.NullPointerException: null
    at com.googlecode.mgwt.dom.client.event.touch.TouchUtil.cloneTouch(TouchUtil.java:18)
    at com.googlecode.mgwt.dom.client.recognizer.tap.MultiTapRecognizer.onTouchStart(MultiTapRecognizer.java:157)
    at com.googlecode.mgwt.dom.client.event.mouse.TouchStartToMouseDownHandler.onMouseDown(TouchStartToMouseDownHandler.java:53)

What version of the product are you using? On what operating system?
mgwt 1.1.2
windows 7 / chrome
Android 4.1.1 / chrome

(It's work in Android 4.1.1 / native browser)

Original issue reported on code.google.com by b.mouch...@gmail.com on 13 Mar 2013 at 2:40

GoogleCodeExporter commented 9 years ago
Is this only happening on desktop?

Original comment by kurka.da...@gmail.com on 30 Mar 2013 at 6:57

GoogleCodeExporter commented 9 years ago
It happened in chrome androdi and desktop.
Now, I can't reproduce this bug!
I don't know why.. The only difference is that I update my GWT from 2.5.1 RC1 
to 2.5.1 .

Original comment by b.mouch...@gmail.com on 5 Apr 2013 at 7:49

GoogleCodeExporter commented 9 years ago
Since this can't seemed to be reproduced closing off now.

Original comment by kurka.da...@gmail.com on 13 Jul 2014 at 5:25