From 7a597e22a19b5eb10f8aef8172bb536d99bf0235 Mon Sep 17 00:00:00 2001 From: zhuzhengjun Date: Wed, 12 Jun 2024 16:38:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ID=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhuzhengjun --- .../plugin/credential_database/CredentialDatabaseHandler.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/credential_database/CredentialDatabaseHandler.ets b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/credential_database/CredentialDatabaseHandler.ets index 9e6d75e5..8829d654 100644 --- a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/credential_database/CredentialDatabaseHandler.ets +++ b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/credential_database/CredentialDatabaseHandler.ets @@ -123,7 +123,7 @@ export default class CredentialDatabaseHandler extends ChannelDelegateImpl { let protectionSpaces = await this.credentialDatabase!.protectionSpaceDao.getAll(); protectionSpaces.forEach(async (item) => { let credentials: List> = new List>(); - let URLCredentials = await this.credentialDatabase!.credentialDao.getAllByProtectionSpaceId(item.getId()) + let URLCredentials = await this.credentialDatabase!.credentialDao.getAllByProtectionSpaceId(item.getId()!) URLCredentials.forEach(credential => { credentials.add(credential.toMap()); }) -- Gitee