Error sending information to an Arduino bord

Hi I am trying to connect my phone to an Arduino board but I get this message every time I want to send data to the Arduino:

“Attempt to invoke virtual method ‘int android.hardware.usb.UsbDeviceConnection.bulkTransfer(android.hardware.usb.UsbEndpoint, byte, int, int)’ on a null object reference”

Thanks :grinning:

Before you ask, you should search. See if this helps. Read to the end.