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

[Android] Additional check to avoid ObjectDisposedException #2313

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

FoggyFinder
Copy link
Contributor

Description of Change

Add an additional check to prevent exception. See related topics:

[Bug] ImgeButtonRenderer used with Effect is disposed before calling OnDetach which may cause exception #13889
Fix ObjectDisposedException issues for renderers OnElementPropertyChanged #9764

Since it's used in single place I think it's not worth creating/copying all these extensions from XF source.

Tests aren't provided cause it's not easy to replicate the exception.

Bugs Fixed

API Changes
None.

Behavioral Changes
None.

Required skia PR
None.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Merged related skia PRs
  • Changes adhere to coding standard
  • Updated documentation

@mattleibow mattleibow merged commit a426c16 into mono:main Jun 12, 2023
@FoggyFinder FoggyFinder deleted the 1614AndroidWorkaround branch June 13, 2023 09:22
@mattleibow mattleibow added this to the v2.88.4 milestone Jun 19, 2023
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

Successfully merging this pull request may close these issues.

[BUG] Random app crashes
2 participants