Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 9011704

Browse files
fmeummsfjarvis
authored andcommitted
Don't crash on null Autofill hints (#1469)
Fixes #1468.
1 parent c60a253 commit 9011704

File tree

1 file changed

+1
-1
lines changed
  • autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser

1 file changed

+1
-1
lines changed

autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FormField.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ internal class FormField(
9797
(HTML_INPUT_FIELD_TYPES_USERNAME + HTML_INPUT_FIELD_TYPES_PASSWORD + HTML_INPUT_FIELD_TYPES_OTP).toSet().toList()
9898

9999
@RequiresApi(Build.VERSION_CODES.O)
100-
private fun isSupportedHint(hint: String) = hint in HINTS_FILLABLE
100+
private fun isSupportedHint(hint: String?) = hint in HINTS_FILLABLE
101101

102102
private val EXCLUDED_TERMS = listOf(
103103
"url_bar", // Chrome/Edge/Firefox address bar

0 commit comments

Comments
 (0)