Throw an ArgumentNullException when value is null in contructor

Modified the construtor, throw an `ArgumentNullException` when value is `null`