From 84d37eec67b4f7825d1f9a6d65a2cb715986877d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Sun, 21 Jul 2013 21:02:55 +0000 Subject: [PATCH] Fixed an issue where the voltages, temperatures, fans and controls arrays could be null (instead of zero length) causing NullReferenceExceptions in SuperIOHardware. --- Hardware/LPC/NCT677X.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Hardware/LPC/NCT677X.cs b/Hardware/LPC/NCT677X.cs index 4062149..841ac34 100644 --- a/Hardware/LPC/NCT677X.cs +++ b/Hardware/LPC/NCT677X.cs @@ -20,10 +20,10 @@ namespace OpenHardwareMonitor.Hardware.LPC { private readonly Chip chip; - private readonly float?[] voltages; - private readonly float?[] temperatures; - private readonly float?[] fans ; - private readonly float?[] controls; + private readonly float?[] voltages = new float?[0]; + private readonly float?[] temperatures = new float?[0]; + private readonly float?[] fans = new float?[0]; + private readonly float?[] controls = new float?[0]; // Hardware Monitor private const uint ADDRESS_REGISTER_OFFSET = 0x05;