From 90117047b787717f43b5ad2aa903a625ea97892f Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Sat, 24 Jul 2021 07:00:15 +0200 Subject: Don't crash on null Autofill hints (#1469) Fixes #1468. --- .../java/com/github/androidpasswordstore/autofillparser/FormField.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autofill-parser') 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 -- cgit v1.2.3