Repository navigation
Commit 8e38852
fix(android): read a child that vanished mid-read as gone
AccessibilityNodeInfo.getChild can throw a NullPointerException from the
framework's result integrity check when the child's window closes during
the read, for example while an alert dialog closes after `alert accept`.
The persistent helper session reported that as a capture failure, so the
host force-killed the session, answered with a one-shot capture, and kept
the session off for about 40 s. Treat the throw as the null that the
framework answers for a vanished child.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 9935ef5 commit 8e38852
1 file changed
Lines changed: 12 additions & 3 deletions
File tree
- android/snapshot-helper/src/main/java/com/callstack/agentdevice/snapshothelper
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | | - | |
35 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
36 | 46 | | |
37 | | - | |
38 | 47 | | |
39 | 48 | | |
0 commit comments