diff --git a/Hardware/HDD/HDD.cs b/Hardware/HDD/HDD.cs index 5f78d58..e5f6167 100644 --- a/Hardware/HDD/HDD.cs +++ b/Hardware/HDD/HDD.cs @@ -94,7 +94,8 @@ namespace OpenHardwareMonitor.Hardware.HDD { public void Update() { if (count == 0) { SMART.DriveAttribute[] attributes = SMART.ReadSmart(handle, drive); - temperature.Value = attributes[attribute].RawValue[0]; + if (attributes != null && attribute < attributes.Length) + temperature.Value = attributes[attribute].RawValue[0]; } else { temperature.Value = temperature.Value; }