1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-29 12:55:21 +01:00

fix: buffer null error (#5856)

This commit is contained in:
Andreas Coroiu 2023-07-19 16:39:09 +02:00 committed by GitHub
parent ecc9c2b9ec
commit 3687eb2d67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,6 +98,10 @@ export class ElectronStateService
options options
); );
if (b64DeviceKey == null) {
return null;
}
return new SymmetricCryptoKey(Utils.fromB64ToArray(b64DeviceKey).buffer) as DeviceKey; return new SymmetricCryptoKey(Utils.fromB64ToArray(b64DeviceKey).buffer) as DeviceKey;
} }