mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-20 02:37: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;
|
ImageProfilePart profilePart;
|
||||||
|
|
||||||
if (customFilters == null || !customFilters.Any()) {
|
if (customFilters == null || !customFilters.Any(c => c != null)) {
|
||||||
profilePart = _profileService.GetImageProfileByName(profileName);
|
profilePart = _profileService.GetImageProfileByName(profileName);
|
||||||
if (profilePart == null)
|
if (profilePart == null)
|
||||||
return String.Empty;
|
return String.Empty;
|
||||||
|
Reference in New Issue
Block a user