From 9421fd9872c76377a81f5b3b45011cef8ae2a295 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/src/main/java/com') 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 5aef13a0..30d80d1d 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 @@ -115,7 +115,7 @@ internal class FormField( .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