mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Averted potential null reference exception
This commit is contained in:
parent
beed20cfdf
commit
0eda87fdf6
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ namespace PKHeX.WinForms
|
|||
{
|
||||
// Delete the settings if they exist
|
||||
var settingsFilename = (e.InnerException as ConfigurationErrorsException)?.Filename;
|
||||
if (File.Exists(settingsFilename))
|
||||
if (!string.IsNullOrEmpty(settingsFilename) && File.Exists(settingsFilename))
|
||||
{
|
||||
if (MessageBox.Show("PKHeX's settings are corrupt. Would you like to reset the settings? (Click Yes to delete the settings or No to close the program.", "PKHeX", MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue