We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cacf5e commit 5582dcbCopy full SHA for 5582dcb
src/Ookii.Dialogs.Wpf/TaskDialog.cs
@@ -1123,7 +1123,7 @@ public TaskDialogButton ShowDialog(IntPtr owner)
1123
if( IsDialogRunning )
1124
throw new InvalidOperationException(Properties.Resources.TaskDialogRunningError);
1125
1126
- if( _buttons.Count == 0 )
+ if (_buttons is null || _buttons.Count == 0)
1127
throw new InvalidOperationException(Properties.Resources.TaskDialogNoButtonsError);
1128
1129
_config.hwndParent = owner;
0 commit comments