akamsteeg / AtleX.HaveIBeenPwned

A fully async .NET Standard client library for the API of HaveIBeenPwned.com
https://www.nuget.org/packages/AtleX.HaveIBeenPwned/
MIT License
5 stars 0 forks source link

KAnonimityHelper.GetKAnonimityPartsForPassword(string) throws NullReferenceException when null is supplied as the argument #45

Closed akamsteeg closed 4 years ago

akamsteeg commented 4 years ago

KAnonimityHelper.GetKAnonimityPartsForPassword(string) does not validate its argument, so it throws a NullReferenceException when null is supplied. We should fix that and throw and ArgumentNullException when the input string is null or empty.