Skip to content

Commit

Permalink
Merge pull request #215 from aivanovski/feature/fix-null-pointer-exce…
Browse files Browse the repository at this point in the history
…ption-in-autofiling

Fix NullPointerException in AutofillStructureParser
  • Loading branch information
aivanovski authored Jan 9, 2024
2 parents db045af + 65861a9 commit c235e17
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 c235e17

Please sign in to comment.