Make sure parameter is not null.