diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-10-11 14:04:01 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-10-14 13:09:43 +0400 |
commit | 0d713cbcadc2a4ec79252afd6dccbfbfbd61d1ed (patch) | |
tree | 21ccb7fbb83784229c19ac27940592125168ca12 /LibGit2Sharp/Signature.cs | |
parent | 374f2a52500414e2eb6db099bdd1018489fb6a15 (diff) |
Protect Signature creation from invalid parameters
Diffstat (limited to 'LibGit2Sharp/Signature.cs')
-rw-r--r-- | LibGit2Sharp/Signature.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LibGit2Sharp/Signature.cs b/LibGit2Sharp/Signature.cs index 7072a7cf..3ca0a724 100644 --- a/LibGit2Sharp/Signature.cs +++ b/LibGit2Sharp/Signature.cs @@ -35,6 +35,8 @@ namespace LibGit2Sharp /// <param name="when">The when.</param> public Signature(string name, string email, DateTimeOffset when) { + Ensure.ArgumentNotNullOrEmptyString(name, "name"); + Ensure.ArgumentNotNull(email, "email"); Ensure.ArgumentDoesNotContainZeroByte(name, "name"); Ensure.ArgumentDoesNotContainZeroByte(email, "email"); |