Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan4m1 committed Aug 17, 2016
1 parent 1ca7dc0 commit 5c79430
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GUI/MainModList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ private IEnumerable<DataGridViewRow> Sort<T>(IEnumerable<DataGridViewRow> rows,
/// </summary>
private string DefaultSorter(DataGridViewRow row)
{
return row.Cells[this.configuration.SortByColumnIndex].Value.ToString();
// changed so that it never returns null
var cellVal = row.Cells[configuration.SortByColumnIndex].Value as string;
return cellVal ?? string.Empty;
}

/// <summary>
Expand Down

0 comments on commit 5c79430

Please sign in to comment.