mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 18:19:55 +08:00
Merge pull request #6349 from infofromca/fix6343
[Fixes #6343 #6231] Handle null filters in ImageProfileManager
This commit is contained in:
@@ -113,7 +113,7 @@ namespace Orchard.MediaProcessing.Services {
|
||||
|
||||
ImageProfilePart profilePart;
|
||||
|
||||
if (customFilters == null || !customFilters.Any()) {
|
||||
if (customFilters == null || !customFilters.Any(c => c != null)) {
|
||||
profilePart = _profileService.GetImageProfileByName(profileName);
|
||||
if (profilePart == null)
|
||||
return String.Empty;
|
||||
|
Reference in New Issue
Block a user