developermypos / myPOS-SDK-Android

myPOS SDK Android enabling to integrate Apps with myPOS Card Terminals for Card Payments processing
48 stars 22 forks source link

Null pointer exception #27

Closed crashfiredeep closed 4 months ago

crashfiredeep commented 5 months ago
      Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.hardware.usb.UsbDeviceConnection.controlTransfer(int, int, int, int, byte[], int, int)' on a null object reference
   at com.mypos.slavesdk.serial.CdcAcmSerialDriver$CdcAcmSerialPort.sendAcmControlMessage(CdcAcmSerialDriver.java:190)
   at com.mypos.slavesdk.serial.CdcAcmSerialDriver$CdcAcmSerialPort.setParameters(CdcAcmSerialDriver.java:239)
   at com.mypos.slavesdk.XgdUsbConnectionHandler$2.run(XgdUsbConnectionHandler.java:154)
   at java.lang.Thread.run(Thread.java:764)
StiliyanKovachev commented 5 months ago

duplicated issue : https://github.com/developermypos/myPOS-SDK-Android/issues/25

if your devices also have no cash register mode provide serial numbers and I will update their software packages