ThinkGeo.com    |     Documentation    |     Premium Support

System.NullReferenceException on TileView

Hi team,

Recently I found there are some error logs in Sentry saying error keep occurring in TileView.
It happens across

Assembly:
ThinkGeo.UI.Maui Version: 14.0.0.0
ThinkGeo.UI.Maui Version: 14.5.0.0

Message : Unexpected exception in MapSource.

System.NullReferenceException: Arg_NullReferenceException
  at void TileView.wUw=(object sender, PropertyChangedEventArgs e)()
  at void Element.OnPropertyChanged(string propertyName)() in Element.cs:line 691
  at void BindableObject.OnBindablePropertySet(BindableProperty property, object original, object value, bool didChange, bool willFirePropertyChanged)() in BindableObject.cs:line 675
  at void Element.OnBindablePropertySet(BindableProperty property, object original, object value, bool changed, bool willFirePropertyChanged)() in Element.cs:line 668
  at void BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, object value, bool currentlyApplying, SetValueFlags attributes, SetterSpecificity specificity, bool silent)() in BindableObject.cs:line 663
  at void BindableObject.SetValueCore(BindableProperty property, object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes, SetterSpecificity specificity)() in BindableObject.cs:line 591
  at void BindableObject.SetValue(BindablePropertyKey propertyKey, object value)() in BindableObject.cs:line 511
  at void Image.Microsoft.Maui.IImageSourcePart.UpdateIsLoading(bool isLoading)() in Image.cs:line 112
  at async Task<IImageSourceServiceResult<UIImage>> ImageSourcePartExtensions.UpdateSourceAsync(IImageSourcePart image, UIView destinationContext, IImageSourceServiceProvider services, Action<UIImage> setImage, float imageScale, CancellationToken cancellationToken)() in ImageSourcePartExtensions.cs:line 65
  at async Task ImageSourcePartLoader.UpdateImageSourceAsync()() in ImageSourcePartLoader.cs:line 76
  at async Task ImageHandler.MapSourceAsync(IImageHandler handler, IImage image)() in ImageHandler.iOS.cs:line 38
  at async void TaskExtensions.FireAndForget(Task task, Action<Exception> errorCallback)() in TaskExtensions.cs:line 36

Hope this help for investigation. Thank you

Hi Jimmy,

This issue was fixed in the latest beta, can you pull v14.5.0-beta124, or wait for v14.5.0, which is expected to be available by the end of this month.

Thanks,
Ben