Skip to content

Commit

Permalink
Throw if PersistentStateAttribute.StateName is null (#8708) (#8718)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenBond authored Nov 11, 2023
1 parent 8ea0ec7 commit 7980370
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class PersistentStateAttribute : Attribute, IFacetMetadata, IPersistentSt
/// <param name="storageName">Name of the storage provider.</param>
public PersistentStateAttribute(string stateName, string storageName = null)
{
ArgumentNullException.ThrowIfNull(stateName);
this.StateName = stateName;
this.StorageName = storageName;
}
Expand Down

0 comments on commit 7980370

Please sign in to comment.