azchohfi / LottieUWP

UWP port of Lottie(https://github.com/airbnb/lottie-android)
Apache License 2.0
274 stars 45 forks source link

null _imageAssetManager check on Dispose #16

Closed TanayParikh closed 6 years ago

TanayParikh commented 6 years ago

Was encountering the following exception due to the _imageAssetManager being null in the Dispose() call.

$exception  {System.NullReferenceException: Object reference not set to an instance of an object.
   at LottieUWP.LottieDrawable.Dispose(Boolean disposing)
   at LottieUWP.LottieDrawable.Dispose()
   at LottieUWP.LottieAnimationView.Dispose(Boolean disposing)
   at LottieUWP.LottieAnimationView.Finalize()} System.NullReferenceException
azchohfi commented 6 years ago

Thanks!