mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Check for Null Event Constant Difference before Clipboard Export (#930)
Prevents ArgumentNullException.
This commit is contained in:
parent
e9ea53ef8c
commit
13aa01ff99
1 changed files with 6 additions and 0 deletions
|
@ -424,6 +424,12 @@ namespace PKHeX.WinForms
|
|||
Console.Write(e);
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(r))
|
||||
{
|
||||
WinFormsUtil.Alert("No Event Constant diff found.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (DialogResult.Yes != WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Copy Event Constant diff to clipboard?"))
|
||||
return;
|
||||
Clipboard.SetText(r);
|
||||
|
|
Loading…
Reference in a new issue