Throw exception if  is null