From babbabb721a62247da85bf53ae3283775df3876e Mon Sep 17 00:00:00 2001 From: K McNaught Date: Fri, 31 May 2019 09:04:25 +0100 Subject: [PATCH] Remove ToString() which could give null exception If property is null, its string interpolation will just be blank. --- src/JuliusSweetland.OptiKey/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JuliusSweetland.OptiKey/App.xaml.cs b/src/JuliusSweetland.OptiKey/App.xaml.cs index e74a5be29..10e306f87 100644 --- a/src/JuliusSweetland.OptiKey/App.xaml.cs +++ b/src/JuliusSweetland.OptiKey/App.xaml.cs @@ -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]); } } }