Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

MonkeyRunner tries to zoom #10429

Closed
tobrun opened this issue Nov 9, 2017 · 0 comments
Closed

MonkeyRunner tries to zoom #10429

tobrun opened this issue Nov 9, 2017 · 0 comments
Labels
Android Mapbox Maps SDK for Android

Comments

@tobrun
Copy link
Member

tobrun commented Nov 9, 2017

11-09 15:37:16.760 2765-2765/com.mapbox.mapboxsdk.plugins.testapp E/AndroidRuntime: FATAL EXCEPTION: main
                                                                                    java.lang.NullPointerException
                                                                                        at com.mapbox.mapboxsdk.maps.NativeMapView.addOnMapChangedListener(NativeMapView.java:1085)
                                                                                        at com.mapbox.mapboxsdk.maps.Transform.setZoom(Transform.java:241)
                                                                                        at com.mapbox.mapboxsdk.maps.Transform.zoom(Transform.java:218)
                                                                                        at com.mapbox.mapboxsdk.maps.MapKeyListener$TrackballLongPressTimeOut.run(MapKeyListener.java:264)
                                                                                        at android.os.Handler.handleCallback(Handler.java:730)
                                                                                        at android.os.Handler.dispatchMessage(Handler.java:92)
                                                                                        at android.os.Looper.loop(Looper.java:137)
                                                                                        at android.app.ActivityThread.main(ActivityThread.java:5103)
                                                                                        at java.lang.reflect.Method.invokeNative(Native Method)
                                                                                        at java.lang.reflect.Method.invoke(Method.java:525)
                                                                                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
                                                                                        at dalvik.system.NativeStart.main(Native Method)

When MonkeyRunner is ran on the test app, it can be fast enough with providing touch events before the nativemapview has been initialised. Currently a nullpointer is thrown. Touch events shouldn't be forwarded if the map isn't able to handle them.

cc @ivovandongen

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Nov 9, 2017
@tobrun tobrun added this to the android-v5.2.0 milestone Nov 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

1 participant