# HG changeset patch
# User moel.mich
# Date 1419979659 0
# Node ID 0e46e3ca812a9bd447954b67efe3327edfbf1b71
# Parent  6b24e39f1b84d61c4d59a9b7d9c0c8afd197b671
Fixed the following issue (present only on 32-bit systems):

Version: 0.7.0.0

System.NullReferenceException: Object reference not set to an instance of an object.
   at OpenHardwareMonitor.GUI.MainForm.timer_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Common Language Runtime: 4.0.30319.18444
Operating System: Microsoft Windows NT 6.1.7601 Service Pack 1
Process Type: 32-Bit

diff -r 6b24e39f1b84 -r 0e46e3ca812a GUI/MainForm.cs
--- a/GUI/MainForm.cs	Tue Dec 30 21:04:54 2014 +0000
+++ b/GUI/MainForm.cs	Tue Dec 30 22:47:39 2014 +0000
@@ -536,7 +536,7 @@
         wmiProvider.Update();
 
 
-      if (logSensors.Value && delayCount >= 4)
+      if (logSensors != null && logSensors.Value && delayCount >= 4)
         logger.Log();
 
       if (delayCount < 4)