diff options
author | Fabian Meumertzheim <fabian@meumertzhe.im> | 2021-07-24 07:00:15 +0200 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2021-07-28 09:07:43 +0530 |
commit | 90117047b787717f43b5ad2aa903a625ea97892f (patch) | |
tree | e4bb94437bd3c84014023fbf254882d16cac2911 /autofill-parser/src | |
parent | c60a2534d5f63d448f9c26d6ac8a933a74249d84 (diff) |
Don't crash on null Autofill hints (#1469)
Fixes #1468.
Diffstat (limited to 'autofill-parser/src')
-rw-r--r-- | autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FormField.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FormField.kt b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FormField.kt index 96bd2196..4945375a 100644 --- a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FormField.kt +++ b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FormField.kt @@ -97,7 +97,7 @@ internal class FormField( (HTML_INPUT_FIELD_TYPES_USERNAME + HTML_INPUT_FIELD_TYPES_PASSWORD + HTML_INPUT_FIELD_TYPES_OTP).toSet().toList() @RequiresApi(Build.VERSION_CODES.O) - private fun isSupportedHint(hint: String) = hint in HINTS_FILLABLE + private fun isSupportedHint(hint: String?) = hint in HINTS_FILLABLE private val EXCLUDED_TERMS = listOf( "url_bar", // Chrome/Edge/Firefox address bar |