Treated QrCode error and empty list error