Treatment null value for params argument

This commit is contained in:
neTp9c
2016-02-09 13:50:09 +03:00
parent 51ad9fc792
commit 66f500e2d7

View File

@@ -57,7 +57,8 @@ namespace Orchard.MediaProcessing.Services {
}
public string GetImageProfileUrl(string path, string profileName, FilterRecord customFilter, ContentItem contentItem) {
return GetImageProfileUrl(path, profileName, contentItem, customFilter);
var customFilters = customFilter != null ? new FilterRecord[] { customFilter } : null;
return GetImageProfileUrl(path, profileName, contentItem, customFilters);
}
public string GetImageProfileUrl(string path, string profileName, ContentItem contentItem, params FilterRecord[] customFilters) {