Skip to content

fix: resolve view crash#1444

Merged
kirillzyusko merged 3 commits into
mainfrom
fix/resolve-view-crash
Apr 27, 2026
Merged

fix: resolve view crash#1444
kirillzyusko merged 3 commits into
mainfrom
fix/resolve-view-crash

Conversation

@kirillzyusko
Copy link
Copy Markdown
Owner

@kirillzyusko kirillzyusko commented Apr 27, 2026

📜 Description

Fixed IllegalViewOperationException crash on Android.

💡 Motivation and Context

Original code has been introduced in #1355 and further started to be used in #1352

Now if view is not found it throws an unhandled exception and crashes the app. In reality we already handle "view not found" exception, so we should just add a proper try/catch block to handle this error correctly in Kotlin code 🤞

Closes #1443

📢 Changelog

Android

  • wrap resolveView with catch (e: IllegalViewOperationException);

🤔 How Has This Been Tested?

Tested via e2e pipeline.

📝 Checklist

  • CI successfully passed
  • I added new mocks and corresponding unit-tests if library API was changed

@kirillzyusko kirillzyusko self-assigned this Apr 27, 2026
@kirillzyusko kirillzyusko added 🤖 android Android specific 🎯 crash Library triggers a crash of the app labels Apr 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 27, 2026

📊 Package size report

Current size Target Size Difference
312153 bytes 312058 bytes 95 bytes 📈

@github-actions
Copy link
Copy Markdown
Contributor

LGTM

@kirillzyusko kirillzyusko merged commit 1048f52 into main Apr 27, 2026
18 checks passed
@kirillzyusko kirillzyusko deleted the fix/resolve-view-crash branch April 27, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖 android Android specific 🎯 crash Library triggers a crash of the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android crash at 1.21.5

1 participant