Skip to content

Commit

Permalink
Fix build warning for null value (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikMogensen committed Aug 3, 2023
1 parent 6fd839b commit 1aa6bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServiceBusExplorer/Controls/HandleQueueControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2762,7 +2762,7 @@ private void dataGridView_RowsRemoved(object sender, DataGridViewRowsRemovedEven

private void dataGridView_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
var grid = sender as DataGridView;
var grid = sender as DataGridView ?? throw new ArgumentNullException(nameof(sender));
var rowIdx = (e.RowIndex + 1).ToString();

var centerFormat = new StringFormat()
Expand Down

0 comments on commit 1aa6bd4

Please sign in to comment.