diff -r 249d57f82cf8 -r 364ca73ba463 Hardware/HDD/HDD.cs --- a/Hardware/HDD/HDD.cs Sun Apr 25 12:35:16 2010 +0000 +++ b/Hardware/HDD/HDD.cs Sun Apr 25 13:16:28 2010 +0000 @@ -94,7 +94,8 @@ 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; }