1
Vote

Null exception on startup if Tortiose not installed (Registry Key)

description

MonitorLizard\Lizard.cs -> ShowIntallationLabels() :
 
Microsoft.Win32.RegistryKey rkOverlays = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\TortoiseOverlays");
 
// <-- Need to add null check of rkOverlays here!
 
string keyValue = rkOverlays.GetValue("UnversionedIcon", string.Empty).ToString();
lblLizardIconsInstalled.Visible = keyValue.EndsWith("TortoiseOutOfDate.ico");
 
 
NOTE: Similar problem in LizardTFx64Registry\Program.cs -> TestLizardOverlayValues()

comments