Skip to content

Commit

Permalink
Remove ToString() which could give null exception
Browse files Browse the repository at this point in the history
If property is null, its string interpolation will just be blank.
  • Loading branch information
kmcnaught authored and JuliusSweetland committed Jun 3, 2019
1 parent 5a96cb4 commit babbabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JuliusSweetland.OptiKey/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private void logUserSettings()

foreach (SettingsProperty property in Settings.Default.Properties)
{
Log.InfoFormat(" {0}: {1}", property.Name, Settings.Default[property.Name].ToString());
Log.InfoFormat(" {0}: {1}", property.Name, Settings.Default[property.Name]);
}
}
}
Expand Down

0 comments on commit babbabb

Please sign in to comment.