fix printer error crash bugs

When I read QRs causes printer errors, App will be crashed.
so i fix it.