Skip to content

Commit 693c138

Browse files
committed
fix: nullcheck
1 parent 2309534 commit 693c138

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JsonApiDotNetCore/Middleware/IncomingTypeMatchFilter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public sealed class IncomingTypeMatchFilter : IActionFilter
2020

2121
public IncomingTypeMatchFilter(IResourceContextProvider provider, IJsonApiRequest jsonApiRequest)
2222
{
23-
_provider = provider;
24-
_jsonApiRequest = jsonApiRequest;
23+
_provider = provider ?? throw new ArgumentNullException(nameof(provider));
24+
_jsonApiRequest = jsonApiRequest ?? throw new ArgumentNullException(nameof(provider));
2525
}
2626

2727
public void OnActionExecuting(ActionExecutingContext context)

0 commit comments

Comments
 (0)