mirror of
https://github.com/bitwarden/android.git
synced 2026-04-10 16:46:01 -05:00
PM-33909: bug: Check the column index before querying for 3rd party autofill data (#6697)
This commit is contained in:
@@ -62,11 +62,13 @@ class BrowserThirdPartyAutofillManagerImpl(
|
||||
)
|
||||
var thirdPartyEnabled = false
|
||||
val isThirdPartyAvailable = cursor
|
||||
?.let {
|
||||
?.use {
|
||||
it.moveToFirst()
|
||||
val columnIndex = it.getColumnIndex(THIRD_PARTY_MODE_COLUMN)
|
||||
thirdPartyEnabled = it.getInt(columnIndex) != 0
|
||||
it.close()
|
||||
thirdPartyEnabled = it
|
||||
.getColumnIndex(THIRD_PARTY_MODE_COLUMN)
|
||||
.takeUnless { columnIndex -> columnIndex == -1 }
|
||||
?.let { columnIndex -> it.getInt(columnIndex) != 0 }
|
||||
?: false
|
||||
true
|
||||
}
|
||||
?: false
|
||||
|
||||
Reference in New Issue
Block a user