Fix null string exception

Empty line via datagrid = null
This commit is contained in:
Kurt
2016-11-20 20:31:34 -08:00
parent fa2886dbf3
commit 97aee48aaf

View File

@@ -98,7 +98,7 @@ public string[] Lines
int bytesUsed = 0;
for (int i = 0; i < lines.Length; i++)
{
string text = value[i].Trim(); // ReSharper disable once RedundantLogicalConditionalExpressionOperand
string text = (value[i] ?? "").Trim(); // ReSharper disable once RedundantLogicalConditionalExpressionOperand
if (text.Length == 0 && SETEMPTYTEXT)
text = $"[~ {i}]";
byte[] DecryptedLineData = getLineData(text);