mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-01 21:36:43 -05:00
Fix null string exception
Empty line via datagrid = null
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user