# HG changeset patch # User moel.mich # Date 1374440575 0 # Node ID a67db9051d19636fc24cb79c66fda15c110a995f # Parent 93dbee74f1e7187bd97af3c06cf821f8606bbcb3 Fixed an issue where the voltages, temperatures, fans and controls arrays could be null (instead of zero length) causing NullReferenceExceptions in SuperIOHardware. diff -r 93dbee74f1e7 -r a67db9051d19 Hardware/LPC/NCT677X.cs --- a/Hardware/LPC/NCT677X.cs Sun Jul 21 15:51:43 2013 +0000 +++ b/Hardware/LPC/NCT677X.cs Sun Jul 21 21:02:55 2013 +0000 @@ -20,10 +20,10 @@ 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;