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

Avoid IndexOutOfBoundsException when destroying map object #9789

Merged
merged 1 commit into from
Aug 17, 2017

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Aug 17, 2017

Closes #9785

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Aug 17, 2017
@tobrun tobrun added this to the android-v5.1.3 milestone Aug 17, 2017
@tobrun tobrun self-assigned this Aug 17, 2017
@tobrun tobrun requested a review from zugaldia August 17, 2017 08:33
long[] ids = null;
if (nativeMapView != null) {
ids = nativeMapView.addMarkers(markers);
long[] ids = nativeMapView.addMarkers(markers);
Copy link
Member

Choose a reason for hiding this comment

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

Looks like the if (nativeMapView != null) check was lost during the refactor. Wouldn't we want to reintroduce it?

Copy link
Member

Choose a reason for hiding this comment

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

Same with the other two cases below.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed with 7335566

@tobrun tobrun force-pushed the tvn-map-destroy-add-annotation branch from 4710dbe to 7335566 Compare August 17, 2017 14:16
@tobrun tobrun merged commit 83336e2 into master Aug 17, 2017
@tobrun tobrun deleted the tvn-map-destroy-add-annotation branch August 17, 2017 14:58
@tobrun tobrun mentioned this pull request Aug 18, 2017
19 tasks
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

Successfully merging this pull request may close these issues.

2 participants