Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Fix NPE in MarkerFollowingRouteActivity #1130

Merged
merged 1 commit into from
Jul 11, 2019
Merged

Fix NPE in MarkerFollowingRouteActivity #1130

merged 1 commit into from
Jul 11, 2019

Conversation

Chaoba
Copy link
Contributor

@Chaoba Chaoba commented Jul 10, 2019

Run monkey test in Ali cloud test platform and find the following error, this PR fix this crash.

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
	at android.animation.PropertyValuesHolder.setObjectValues(PropertyValuesHolder.java:663)
	at android.animation.PropertyValuesHolder.ofObject(PropertyValuesHolder.java:406)
	at android.animation.ValueAnimator.setObjectValues(ValueAnimator.java:506)
	at android.animation.ValueAnimator.ofObject(ValueAnimator.java:417)
	at com.mapbox.mapboxandroiddemo.examples.labs.MarkerFollowingRouteActivity$2.run(MarkerFollowingRouteActivity.java:132)
	at android.os.Handler.handleCallback(Handler.java:873)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:201)
	at android.app.ActivityThread.main(ActivityThread.java:6806)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

@Chaoba Chaoba requested a review from langsmith July 10, 2019 07:13
@Chaoba Chaoba merged commit f280767 into master Jul 11, 2019
@Chaoba Chaoba deleted the kl-nullporint branch July 11, 2019 02:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants