handle null value for a variable