Bluetooth-Library icon indicating copy to clipboard operation
Bluetooth-Library copied to clipboard

SocketReader read() returning null

Open prianck opened this issue 5 years ago • 2 comments

I had experienced a crash in the app pointing to the library's ReceiveThread's run() function. here I was wondering what could probably cause a NPE at reader.read()

prianck avatar Sep 08 '20 11:09 prianck

Stacktrace Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] j.a.a.c.b.a()' on a null object reference at me.aflak.bluetooth.Bluetooth$ReceiveThread.run(Bluetooth.java:556)

prianck avatar Sep 08 '20 11:09 prianck

Same issue: E/AndroidRuntime: FATAL EXCEPTION: Thread-15 Process: com.bosch.aquaeasy.dev, PID: 30888 java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] j.a.a.c.b.a()' on a null object reference at j.a.a.a$i.run(SourceFile:556)

Tho391 avatar Aug 16 '21 03:08 Tho391