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


Solutions on the web21565

Solution icon of github
via GitHub by alittle
, 1 year ago
Attempt to invoke virtual method 'int android.hardware.usb.UsbDeviceConnection.bulkTransfer(android.hardware.usb.UsbEndpoint, byte[], int, int)' on a null object reference

Solution icon of github
via GitHub by pasin
, 1 year ago
Attempt to invoke virtual method 'int java.io.InputStream.read(byte[], int, int)' on a null object reference

Solution icon of github
Attempt to invoke virtual method 'int java.io.InputStream.read(byte[], int, int)' on a null object reference

Solution icon of github
Attempt to invoke virtual method 'int java.io.InputStream.read(byte[], int, int)' on a null object reference

Solution icon of github
via GitHub by BishopGIS
, 10 months ago
Attempt to invoke virtual method 'int java.io.InputStream.read(byte[], int, int)' on a null object reference

Solution icon of github
via GitHub by Larnoo
, 4 months ago
Attempt to invoke virtual method 'int java.io.InputStream.read(byte[], int, int)' on a null object reference

Solution icon of stackoverflow
Attempt to invoke virtual method 'int java.io.InputStream.read(byte[], int, int)' on a null object reference

Solution icon of github
via GitHub by ojw28
, 1 year ago
Attempt to invoke virtual method 'int java.io.InputStream.read(byte[], int, int)' on a null object reference

Solution icon of github
Attempt to invoke virtual method 'int android.media.AudioTrack.write(byte[], int, int)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Unknown author, 1 year ago
Attempt to invoke virtual method 'int java.io.InputStream.read(byte[], int, int)' on a null object reference

Stack trace

  • 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.hoho.android.usbserial.driver.ProlificSerialDriver$ProlificSerialPort.read(ProlificSerialDriver.java:373) at com.hoho.android.usbserial.util.SerialInputOutputManager.step(SerialInputOutputManager.java:159) at com.hoho.android.usbserial.util.SerialInputOutputManager.run(SerialInputOutputManager.java:141) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.