Merge pull request #1022 from GaborApatiNagy/master_CA-213232

CA-213232: Helpers.OEMName(Host host) can throw NullReferenceException
This commit is contained in:
Mihaela Stoica 2016-06-14 13:50:32 +01:00 committed by GitHub
commit 5fb71ad2c2

View File

@ -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 "";