Skip to content

Commit

Permalink
Add null check in childNafCheck to handle case when child node is null (
Browse files Browse the repository at this point in the history
mobile-dev-inc#2172)

* Add null check in childNafCheck to handle case when child node is null

* Update build artefacts

---------

Co-authored-by: Dan Caseley <[email protected]>
  • Loading branch information
2 people authored and Rasyid Ridho committed Dec 9, 2024
1 parent 2eed429 commit df02180
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ object ViewHierarchy {
val childCount = node.childCount
for (x in 0 until childCount) {
val childNode = node.getChild(x)
if (childNode == null) continue;
if (!safeCharSeqToString(childNode.contentDescription).isEmpty()
|| !safeCharSeqToString(childNode.text).isEmpty()
) return true
Expand Down
Binary file modified maestro-client/src/main/resources/maestro-app.apk
Binary file not shown.
Binary file modified maestro-client/src/main/resources/maestro-server.apk
Binary file not shown.

0 comments on commit df02180

Please sign in to comment.