Skip to content

Check accessibleChild for null in defaultAccessibilityFocusTarget#3158

Merged
Alexander Maryanovsky (m-sasha) merged 1 commit into
jb-mainfrom
m-sasha/fix-defaultAccessibilityFocusTarget
Jun 25, 2026
Merged

Check accessibleChild for null in defaultAccessibilityFocusTarget#3158
Alexander Maryanovsky (m-sasha) merged 1 commit into
jb-mainfrom
m-sasha/fix-defaultAccessibilityFocusTarget

Conversation

@m-sasha

Copy link
Copy Markdown

Check accessibleChild for null in defaultAccessibilityFocusTarget before adding it to the queue.

Unfortunately without a reproducer I can't fix the underlying reason for the child being null. It's coming from either ComposeAccessibleComponent.getAccessibleChild, or some non-CMP Swing component.

But the impact of sometimes returning null from defaultAccessibilityFocusTarget when we shouldn't isn't that significant to warrant a big investigation.

Fixes https://youtrack.jetbrains.com/issue/CMP-10363

Testing

N/A

Release Notes

Fixes - Desktop

  • Fixed a crash when encountering a null accessible child in the Swing hierarchy while looking for a component to switch a11y focus to, after the currently focused a11y component has been removed.

@m-sasha
Alexander Maryanovsky (m-sasha) merged commit 81c2b3c into jb-main Jun 25, 2026
40 of 43 checks passed
@m-sasha
Alexander Maryanovsky (m-sasha) deleted the m-sasha/fix-defaultAccessibilityFocusTarget branch June 25, 2026 11:50
Apolo (ApoloApps) pushed a commit to ApoloApps/compose-multiplatform-core that referenced this pull request Jul 20, 2026
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.

2 participants