Method argument 'values' might be null thus causing a null pointer exception