tsasioglu / Total-Uninstaller

Windows software uninstaller
280 stars 27 forks source link

Linq expression querying ProductInstallation collection must be filtered. #1

Closed konste closed 9 years ago

konste commented 9 years ago

In InstalledItemsViewModel.cs, LoadUninstallableItems(), GetProducts may occasionally return empty records. In your select statement you query "ins.InstallDate" and for empty record it blows up with ArgumentNullException which eventually surfaces as unhandled (and very obscure) ParseXamlException.

Solution is very simple: insert " .Where(ins => ins.ProductName != null) " after GetProducts and before Select part of the Linq expression.

Konstantin

tsasioglu commented 9 years ago

Done, thanks.