and null check for SHA1Hashing class