Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions adapters/android/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ fn send_completed_event(env: &mut JNIEnv, host: &JObject, event: JObject) {
.unwrap()
.l()
.unwrap();
// The host may have been detached from its window by the time
// a posted event is raised, in which case there's nothing to send it to.
if parent.is_null() {
return;
}
env.call_method(
&parent,
"requestSendAccessibilityEvent",
Expand Down
Loading