diff --git a/src/App/Models/CipherString.cs b/src/App/Models/CipherString.cs index 48e3c288f..37030b54b 100644 --- a/src/App/Models/CipherString.cs +++ b/src/App/Models/CipherString.cs @@ -18,7 +18,9 @@ namespace Bit.App.Models var headerPieces = encryptedString.Split('.'); string[] encPieces; - if(headerPieces.Length == 2 && Enum.TryParse(headerPieces[0], out EncryptionType encType)) + + EncryptionType encType; + if(headerPieces.Length == 2 && Enum.TryParse(headerPieces[0], out encType)) { EncryptionType = encType; encPieces = headerPieces[1].Split('|');