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

NullReference exception durin pin updates #346

Open
IngweLand opened this issue Aug 13, 2018 · 2 comments
Open

NullReference exception durin pin updates #346

IngweLand opened this issue Aug 13, 2018 · 2 comments

Comments

@IngweLand
Copy link

Tested on Android v 1.5.1 and 1.6.1, but might be valid for iOS as well as for latest versions.
The exception is thrown in private void UpdatePins(bool firstUpdate = true) because FormsMap is null. My scenario when exception occurred was as following: page with map is loaded, data for pins is requested from the server and pins are added to the screen, probably in the middle of this process user changes page to another one which removes map control and as a result FormsMap becomes null.

@vincentcastagna
Copy link

"probably in the middle of this process user changes page to another one which removes map control"

I'm sorry I dont understand the real flow you are having in your app.
What is the main page of your app ?
Where is the mapPage in the navigation stack ?

@duranvictor
Copy link

MapCenter = new Position(LatitudeValue, LongitudeValue);
MapRegion = MapSpan.FromCenterAndRadius(MapCenter, Distance.FromKilometers(GlobalSettings.fromKilometers));

when update

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

No branches or pull requests

3 participants