mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
fix: buffer null error (#5856)
This commit is contained in:
parent
ecc9c2b9ec
commit
3687eb2d67
@ -98,6 +98,10 @@ export class ElectronStateService
|
||||
options
|
||||
);
|
||||
|
||||
if (b64DeviceKey == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return new SymmetricCryptoKey(Utils.fromB64ToArray(b64DeviceKey).buffer) as DeviceKey;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user