Skip to content

Commit

Permalink
Add back null check in DbContextActivator.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcvickers committed Nov 2, 2021
1 parent 6c51389 commit adc2687
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EFCore.Design/Design/DbContextActivator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System;
using System.Reflection;
using Microsoft.EntityFrameworkCore.Design.Internal;
using Microsoft.EntityFrameworkCore.Utilities;

namespace Microsoft.EntityFrameworkCore.Design
{
Expand Down Expand Up @@ -43,6 +44,8 @@ public static DbContext CreateInstance(
IOperationReportHandler? reportHandler,
string[]? args)
{
Check.NotNull(contextType, nameof(contextType));

return new DbContextOperations(
new OperationReporter(reportHandler),
contextType.Assembly,
Expand Down

0 comments on commit adc2687

Please sign in to comment.