Skip to content

Commit

Permalink
Fix NullPointerException in AutofillStructureParser
Browse files Browse the repository at this point in the history
  • Loading branch information
aivanovski committed Jan 9, 2024
1 parent db045af commit 65861a9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ class AutofillStructureParser(
}

private fun getAutofillNodeByAutofillHint(node: ViewNode): AutofillNode? {
val hints = node.autofillHints ?: return null
val hints = node.autofillHints
?.filterNotNull()
?: return null

if (!node.hasValidData()) {
return null
Expand Down

0 comments on commit 65861a9

Please sign in to comment.