This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
[android] Refactor layer/source ownership - #6997
Merged
Merged
Conversation
|
@ivovandongen, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bleege, @tobrun and @incanus to be potential reviewers. |
ivovandongen
force-pushed
the
ivovandongen-android-style-ownership
branch
from
November 10, 2016 12:27
13df63a to
825099a
Compare
Closed
Member
|
I was able to make it crash with: java.lang.NullPointerException: Attempt to invoke virtual method 'com.mapbox.mapboxsdk.style.sources.Source com.mapbox.mapboxsdk.maps.NativeMapView.getSource(java.lang.String)' on a null object reference
at com.mapbox.mapboxsdk.maps.MapboxMap.getSourceAs(MapboxMap.java:159)
at com.mapbox.mapboxsdk.testapp.activity.style.RuntimeStyleActivity$3.run(RuntimeStyleActivity.java:355)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5515)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:764)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:654)Which points to: GeoJsonSource source = mapboxMap.getSourceAs("dynamic-park-source");Seeing this line in this PR makes me think we need to update that example code as well? update: isn't reproducible on demand. |
tobrun
approved these changes
Nov 11, 2016
Contributor
Author
|
@tobrun This is a separate issue where the animation is not killed properly on closing the Activity. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6995
Should be ported to the 4.2.0 release branch as well.
cc @jfirebaugh @tobrun