Null check.

This commit is contained in:
Michael Bucari-Tovo 2021-08-20 14:57:23 -06:00
parent 8386da5ec6
commit a8d609676e

View File

@ -27,7 +27,7 @@ namespace LibationWinForms
DataGridView.Rows[rowIndex].DefaultCellStyle.ForeColor = foreColor; DataGridView.Rows[rowIndex].DefaultCellStyle.ForeColor = foreColor;
} }
if (tagsString.Length == 0) if (tagsString?.Length == 0)
{ {
base.Paint(graphics, clipBounds, cellBounds, rowIndex, elementState, null, null, null, cellStyle, advancedBorderStyle, paintParts); base.Paint(graphics, clipBounds, cellBounds, rowIndex, elementState, null, null, null, cellStyle, advancedBorderStyle, paintParts);
DrawButtonImage(graphics, ButtonImage, cellBounds); DrawButtonImage(graphics, ButtonImage, cellBounds);