Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NPE for MapView.onTouchEvent #1974

Merged
merged 1 commit into from
Dec 10, 2018
Merged

Conversation

tallytalwar
Copy link
Member

Client code could call MapView.onTouchEvent or its extension in its
own MapView class, when MapController has not been set. To avoid this it
makes sense to check for nullability of MapController in
MapView.onTouchEvent.

- Client code could call MapView.onTouchEvent or its extension in its
own MapView class, when MapController has not been set. To avoid this it
makes sense to check for nullability of MapController in
MapView.onTouchEvent.
Copy link
Member

@matteblair matteblair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Kotlin would have caught (kot?) this for us.

@tallytalwar tallytalwar merged commit 273d430 into master Dec 10, 2018
@tallytalwar tallytalwar deleted the fix-android-touch-event-npe branch December 10, 2018 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants