Handle null value for roles and raw