mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 18:16:54 -05:00
Check for Null Event Constant Difference before Clipboard Export (#930)
Prevents ArgumentNullException.
This commit is contained in:
committed by
Kaphotics
parent
e9ea53ef8c
commit
13aa01ff99
@@ -424,6 +424,12 @@ private void diffSaves()
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user