100.10 Crashes in UpdateCurrentPosition on Android

466
1
02-08-2021 11:24 AM
MikeBHamsa
New Contributor II

Hello,

We recently upgraded one of our Xamarin apps to 100.10 and during testing we are periodically getting some System Null Reference exceptions in what looks like a core method. We haven't found a specific way to reproduce it yet, and so far it only looks like an issue on Android.

Here's what we could capture of the call stack.

System.NullReferenceException: Object reference not set to an instance of an object

Geolocator.UpdateCurrentPosition (Android.Locations.Location location, System.Boolean isLastKnown)Geolocator.OnLocationChanged (Android.Locations.Location location)ILocationListenerInvoker.n_OnLocationChanged_Landroid_location_Location_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_location)(wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.214(intptr,intptr,intptr)
 
Any ideas?
Mike...
0 Kudos
1 Reply
MichaelBranscomb
Esri Frequent Contributor

Hi,

We took a look the API code for Geolocator.UpdateCurrentPosition but we should be handling any potential NullReferenceException on Android in that method. We'll double check, but in the meantime let us know if you get any more info on this.

Thanks

0 Kudos