mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 15:29:26 +01:00
Merge pull request #1022 from GaborApatiNagy/master_CA-213232
CA-213232: Helpers.OEMName(Host host) can throw NullReferenceException
This commit is contained in:
commit
5fb71ad2c2
@ -1410,6 +1410,9 @@ namespace XenAdmin.Core
|
||||
/// </summary>
|
||||
public static string OEMName(Host host)
|
||||
{
|
||||
if (host.software_version == null)
|
||||
return string.Empty;
|
||||
|
||||
if (!host.software_version.ContainsKey("oem_manufacturer"))
|
||||
return "";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user