commit e32b4d6c455f2b0fc7b5377013ef3d47f2b63ecc
parent 043c313797b351624b334067477a2cc4e59076bd
Author: René Wagner <rwagner@rw-net.de>
Date: Fri, 22 May 2020 13:47:47 +0200
fix null reference exception on startup
Diffstat:
4 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/WorkTimeHero/App.config b/WorkTimeHero/App.config
@@ -17,7 +17,7 @@
<value>05/20/2020 08:00:00</value>
</setting>
<setting name="StartTimestamp" serializeAs="String">
- <value />
+ <value>1970-01-01</value>
</setting>
</WorkTimeHero.Properties.Settings>
</userSettings>
diff --git a/WorkTimeHero/Properties/AssemblyInfo.cs b/WorkTimeHero/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.4.0.0")]
-[assembly: AssemblyFileVersion("1.4.0.0")]
+[assembly: AssemblyVersion("1.4.1.0")]
+[assembly: AssemblyFileVersion("1.4.1.0")]
diff --git a/WorkTimeHero/Properties/Settings.Designer.cs b/WorkTimeHero/Properties/Settings.Designer.cs
@@ -49,6 +49,7 @@ namespace WorkTimeHero.Properties {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("1970-01-01")]
public global::System.DateTime StartTimestamp {
get {
return ((global::System.DateTime)(this["StartTimestamp"]));
diff --git a/WorkTimeHero/Properties/Settings.settings b/WorkTimeHero/Properties/Settings.settings
@@ -9,7 +9,7 @@
<Value Profile="(Default)">05/20/2020 08:00:00</Value>
</Setting>
<Setting Name="StartTimestamp" Type="System.DateTime" Scope="User">
- <Value Profile="(Default)" />
+ <Value Profile="(Default)">1970-01-01</Value>
</Setting>
</Settings>
</SettingsFile>
\ No newline at end of file