Closed affan338 closed 1 year ago
USBPrinter.connectPrinter(printer.vendorID, printer.productId).then(() => setCurrentPrinter(printer));
I'm trying to connect to a USB printer but when I'm tapping on the printer it's showing an error as mentioned below:
Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference.
The same issue, I'm facing. Any solution?
I was using the wrong syntax, I’m able to connect now
USBPrinter.connectPrinter(printer.vendorID, printer.productId).then(() => setCurrentPrinter(printer));
I'm trying to connect to a USB printer but when I'm tapping on the printer it's showing an error as mentioned below:
Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference.