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 9e6d75e5d11c141d34313dcf2b349d415ec2371b..8829d6549ccc1d3af2fb90e86b3f565ed9fd87da 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()); })