Ignore:
Timestamp:
Jan 22, 2011, 11:28:57 PM (10 years ago)
Author:
schwittmann
Message:

Fixed exception on systems where no processorId is available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPluginBase/Miscellaneous/UniqueIdentifier.cs

    r2412 r2430  
    2525            foreach (ManagementObject mob in moc)
    2626            {
    27                 cpuids += mob.Properties["processorID"].Value.ToString();
     27                var cpuid = mob.Properties["processorID"].Value;
     28                if (cpuid != null)
     29                {
     30                    cpuids += cpuid.ToString();
     31                }
    2832            }
    2933
Note: See TracChangeset for help on using the changeset viewer.