You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have reasons to believe this issue is specific for serial printers, because the same code has been working perfectly for all other printers up until now.
Steps to reproduce:
I import USBPrinter and run init() method
I successfully find devices with getDeviceList method
I successfully connect to printer and confirm the access in the Android alert modal
I run any printing method (printBill, printText, printRaw...)
App crashes with this java error:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.hardware.usb.UsbDeviceConnection.bulkTransfer(android.hardware.usb.UsbEndpoint, byte[], int, int)' on a null object reference
at com.pinmi.react.printer.adapter.USBPrinterAdapter$2.run(USBPrinterAdapter.java:235)
at java.lang.Thread.run(Thread.java:919)
I have been stuck at this one for a while now, do you have any tips this type of error?
The text was updated successfully, but these errors were encountered:
Hello, I have reasons to believe this issue is specific for serial printers, because the same code has been working perfectly for all other printers up until now.
Steps to reproduce:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.hardware.usb.UsbDeviceConnection.bulkTransfer(android.hardware.usb.UsbEndpoint, byte[], int, int)' on a null object reference
at com.pinmi.react.printer.adapter.USBPrinterAdapter$2.run(USBPrinterAdapter.java:235)
at java.lang.Thread.run(Thread.java:919)
I have been stuck at this one for a while now, do you have any tips this type of error?
The text was updated successfully, but these errors were encountered: