mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#18882: Fixing NullReferenceException in ThemeCommands
Work Item: 18882 --HG-- branch : 1.x
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Orchard.Themes.Commands {
|
||||
|
||||
var themes = _extensionManager.AvailableExtensions()
|
||||
.Where(d => DefaultExtensionTypes.IsTheme(d.ExtensionType))
|
||||
.Where(d => d.Tags.Split(',').Any(t => t.Trim().Equals("hidden", StringComparison.OrdinalIgnoreCase)) == false)
|
||||
.Where(d => d.Tags!= null && d.Tags.Split(',').Any(t => t.Trim().Equals("hidden", StringComparison.OrdinalIgnoreCase)) == false)
|
||||
.Select(d => new ThemeEntry {
|
||||
Descriptor = d,
|
||||
NeedsUpdate = featuresThatNeedUpdate.Contains(d.Id),
|
||||
|
||||
Reference in New Issue
Block a user