mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Catch exception during autofill parse
This commit is contained in:
@@ -37,6 +37,7 @@ internal class StructureParser(private val structure: AssistStructure) {
|
||||
private var usernameCandidate: AutofillId? = null
|
||||
|
||||
fun parse(): Result? {
|
||||
try {
|
||||
result = Result()
|
||||
result?.apply {
|
||||
usernameCandidate = null
|
||||
@@ -59,6 +60,9 @@ internal class StructureParser(private val structure: AssistStructure) {
|
||||
result
|
||||
else
|
||||
null
|
||||
} catch (e: Exception) {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
private fun parseViewNode(node: AssistStructure.ViewNode): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user