mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-30 05:47:38 +00:00
Fixed the NullReference Exception
This commit is contained in:
parent
c3c27c3789
commit
fcf4876985
@ -54,7 +54,9 @@ namespace OpenHardwareMonitor.WMI {
|
||||
Name = hardware.Name;
|
||||
Identifier = hardware.Identifier.ToString();
|
||||
HardwareType = hardware.HardwareType.ToString();
|
||||
Parent = hardware.Parent.Identifier.ToString();
|
||||
Parent = (hardware.Parent != null)
|
||||
? hardware.Parent.Identifier.ToString()
|
||||
: "";
|
||||
}
|
||||
|
||||
public void Update() { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user