Fixed a crash in the tag statistics window

This commit is contained in:
MascaraSnake 2017-11-08 19:22:46 +01:00
parent b8a2d71625
commit b9b30a2887

View file

@ -212,7 +212,7 @@ namespace CodeImp.DoomBuilder.GZBuilder.Windows
foreach(DataGridViewRow row in dataGridView.Rows)
{
string label = row.Cells[1].Value.ToString();
string label = row.Cells[1].Value == null ? "" : row.Cells[1].Value.ToString();
if(!string.IsNullOrEmpty(label))
General.Map.Options.TagLabels.Add((int)row.Cells[0].Value, label);
}