* made hash implementation NULL pointer safe.