Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
OrchardCore throw a exception "ArgumentNullException: Value cannot be null. (Parameter 'source')" when it call "Orchard.ContentQueryAsync(query, queryParams)"方法 #16688
OrchardCore throw a exception "ArgumentNullException: Value cannot be null. (Parameter 'source')" when it call "Orchard.ContentQueryAsync(query, queryParams)"方法
a pieces of code as follows:
var queryParams = new Dictionary<string, object>() { { "size", fetchCount }, { "from", from } };
string query = (string)Model.ContentItem.Content.ContentFeedByTaxonomy.Items.Value;
var items = await Orchard.ContentQueryAsync(query, queryParams); // throw exception : ArgumentNullException: Value cannot be null. (Parameter 'source')
note:
the state "var items = await Orchard.ContentQueryAsync(query);" can execute correctly.
Describe the bug
OrchardCore throw a exception "ArgumentNullException: Value cannot be null. (Parameter 'source')" when it call "Orchard.ContentQueryAsync(query, queryParams)"方法
a pieces of code as follows:
var queryParams = new Dictionary<string, object>() { { "size", fetchCount }, { "from", from } }; string query = (string)Model.ContentItem.Content.ContentFeedByTaxonomy.Items.Value; var items = await Orchard.ContentQueryAsync(query, queryParams); // throw exception : ArgumentNullException: Value cannot be null. (Parameter 'source')
note: the state "var items = await Orchard.ContentQueryAsync(query);" can execute correctly.
Orchard Core version
1.8.3 and 1.8.4
Logs and screenshots