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

MonkeyRunner tries to zoom #10429

Closed
Closed

Description

@tobrun
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

Activity

  1. added
    Android
    on Nov 9, 2017
  2. added this to the android-v5.2.0 milestone on Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Android

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions