mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Fixes 5614 : ContentPickerField and LayoutPart throws argument null exception.
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Orchard.ContentPicker.Fields {
|
||||
|
||||
public IEnumerable<ContentItem> ContentItems {
|
||||
get {
|
||||
return _contentItems.Value;
|
||||
return _contentItems.Value ?? new ContentItem[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user