diff --git a/src/iOS.Autofill/CredentialProviderViewController.cs b/src/iOS.Autofill/CredentialProviderViewController.cs index 84c2c70fb..c7437795e 100644 --- a/src/iOS.Autofill/CredentialProviderViewController.cs +++ b/src/iOS.Autofill/CredentialProviderViewController.cs @@ -1,4 +1,4 @@ -using AuthenticationServices; +using AuthenticationServices; using Bit.App.Resources; using Bit.Core.Abstractions; using Bit.Core.Utilities; @@ -191,8 +191,8 @@ namespace Bit.iOS.Autofill private async Task ProvideCredentialAsync() { - var cipherService = ServiceContainer.Resolve("cipherService"); - var cipher = await cipherService.GetAsync(_context.CredentialIdentity.RecordIdentifier); + var cipherService = ServiceContainer.Resolve("cipherService", true); + var cipher = await cipherService?.GetAsync(_context.CredentialIdentity.RecordIdentifier); if(cipher == null || cipher.Type != Bit.Core.Enums.CipherType.Login) { var err = new NSError(new NSString("ASExtensionErrorDomain"), @@ -283,4 +283,4 @@ namespace Bit.iOS.Autofill } } } -} \ No newline at end of file +}