Skip to content
Snippets Groups Projects
Commit a31c03e7 authored by Daniel Peykov's avatar Daniel Peykov Committed by Automerger Merge Worker
Browse files

Merge "Fix potential NPE when dumping child nodes" into main am: 88a077b7

parents 63640e75 88a077b7
No related branches found
No related tags found
No related merge requests found
......@@ -292,13 +292,17 @@ public class AccessibilityNodeInfoDumper {
int childCount = node.getChildCount();
for (int x = 0; x < childCount; x++) {
AccessibilityNodeInfo childNode = node.getChild(x);
if (childNode == null) {
continue;
}
if (!safeCharSeqToString(childNode.getContentDescription()).isEmpty()
|| !safeCharSeqToString(childNode.getText()).isEmpty())
|| !safeCharSeqToString(childNode.getText()).isEmpty()) {
return true;
}
if (childNafCheck(childNode))
if (childNafCheck(childNode)) {
return true;
}
}
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment