Open ncpa0cpl opened 4 days ago
It is also worth to mention that recycling power on the device and the printer doesn't help. Only after uninstalling the app and installing it again, we can establish connection with the printer. I was looking through issues in this repo and in https://github.com/star-micronics/StarXpand-SDK-Android, and I didn't find anything similar except this issue: https://github.com/star-micronics/StarXpand-SDK-Android/issues/19 where reinstall was also the only solution. In first comment, it was told that it is possible that it is caused by "recycling stored values". Is there a way for clearing those values as a temporary fix?
Description
At my work we've encountered an issue like this: when calling the
StarPrinter.getStatus()
we'd get anempty String
exception on one of the production devices, it happens only on one of them, and started happening after a network outage. Looking through the stack trace it appears that the SDK parses a string into a number, but the string happens to be empty hence the error. Though we can not think of what could be causing this, in the first place what numbers are there to be parsed in a getStatus() call?Could someone shed some light on what could possible be the cause of this?
Your device where the bug occurs
Your printer
SDK Version: 1.6.0
Additional context
Here's the stack trace of the error that we are getting: