handle null values in annotations