Skip to content

Commit 69a6ffa

Browse files
author
Jacob Hilty
committed
Added proper null check for QuerySet
1 parent 491beb3 commit 69a6ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/Services/QueryComposer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class QueryComposer : IQueryComposer
1414
public string Compose(IJsonApiContext jsonApiContext)
1515
{
1616
string result = "";
17-
if(jsonApiContext != null)
17+
if(jsonApiContext != null && jsonApiContext.QuerySet != null)
1818
{
1919
List<FilterQuery> filterQueries = jsonApiContext.QuerySet.Filters;
2020
if (filterQueries.Count > 0)

0 commit comments

Comments
 (0)