check product.Link is null.

Bugfix for http://websitepanel.codeplex.com/workitem/338
New Gallery - "All" not working
This commit is contained in:
Sergey 2012-08-27 15:13:39 +03:00
parent 32457caae0
commit 24ee7357c1

View file

@ -387,7 +387,7 @@ namespace WebsitePanel.Providers.Web.WPIWebApplicationGallery
Summary = product.Summary,
LastUpdated = product.Published,
Published = product.Published,
Link = product.Link.ToString(),
Link = (null == product.Link) ? "" : product.Link.ToString(),
InstallerFileSize = size
};
}