Fixing bug with null reference on Tags

This commit is contained in:
Nicholas Mayne
2015-01-14 11:11:29 +00:00
parent 4cb06abd2a
commit 98bd9e0a9c

View File

@@ -120,7 +120,7 @@ namespace Orchard.Themes.Services {
ExtensionDescriptor theme = descriptor;
if (!theme.Tags.Contains("hidden")) {
if (theme.Tags == null || !theme.Tags.Contains("hidden")) {
themes.Add(theme);
}
}