Skip to content

Commit

Permalink
Fix NullReferenceException when calling AddFluentValidationClientside…
Browse files Browse the repository at this point in the history
…Adapters (#1969)
  • Loading branch information
JeremySkinner committed Jun 27, 2022
1 parent 3f3e005 commit a1a1777
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>11.1.0</VersionPrefix>
<VersionPrefix>11.1.1</VersionPrefix>
<VersionSuffix></VersionSuffix>
<!-- Use CI build number as version suffix (if defined) -->
<!--<VersionSuffix Condition="'$(GITHUB_RUN_NUMBER)'!=''">ci-$(GITHUB_RUN_NUMBER)</VersionSuffix>-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public FluentValidationViewOptionsSetup(Action<FluentValidationClientModelValida

public void Configure(MvcViewOptions options) {
var provider = new FluentValidationClientModelValidatorProvider(_httpContextAccessor);
_action(provider);
_action?.Invoke(provider);
options.ClientModelValidatorProviders.Add(provider);
}
}
Expand Down

0 comments on commit a1a1777

Please sign in to comment.