Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cc9eae1 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 am: a31c03e7

parents f0fff6a1 a31c03e7
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -292,14 +292,18 @@ 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;
    }