From 4c2bcb9e6bb9a4ff2c73b90996f925899ce5ec9d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 20 Apr 2017 00:10:36 -0400 Subject: [PATCH] IsNullOrWhiteSpace InitializationVector --- src/App/Models/CipherString.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/Models/CipherString.cs b/src/App/Models/CipherString.cs index 9901a76d6..6b5c1600b 100644 --- a/src/App/Models/CipherString.cs +++ b/src/App/Models/CipherString.cs @@ -97,7 +97,7 @@ namespace Bit.App.Models public string InitializationVector { get; private set; } public string CipherText { get; private set; } public string Mac { get; private set; } - public byte[] InitializationVectorBytes => InitializationVector == null ? + public byte[] InitializationVectorBytes => string.IsNullOrWhiteSpace(InitializationVector) ? null : Convert.FromBase64String(InitializationVector); public byte[] CipherTextBytes => Convert.FromBase64String(CipherText); public byte[] MacBytes => Mac == null ? null : Convert.FromBase64String(Mac);