elmassimo

NullPointerException on MapView,onAnimationEnd

Discussion created by elmassimo on Jul 13, 2013
My setup is a map with a base layer (Bing), and a graphics layer with Points. The MapView is part of a Fragment.
I have a listener attached to the MapView onSingleTap event, which is called and runs without error, and starts a new activity.
The exception occurs when panning the map and then inmediately making a single tap. Sometimes it doesn't..

java.lang.NullPointerException
        at com.esri.android.map.MapView$5.onAnimationEnd(Unknown Source)
        at android.view.animation.Animation$3.run(Animation.java:374)
        at android.os.Handler.handleCallback(Handler.java:725)
        at android.os.Handler.dispatchMessage(Handler.java:92)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:5041)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
        at dalvik.system.NativeStart.main(Native Method)

Outcomes