Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null Pointer Exception on Thread #1

Open
kevinvanzyl opened this issue Jul 27, 2015 · 4 comments
Open

Null Pointer Exception on Thread #1

kevinvanzyl opened this issue Jul 27, 2015 · 4 comments

Comments

@kevinvanzyl
Copy link

Hi, I am getting this whenever I turn Bluetooth off after connecting to a device but am unable to handle the exception and instead app crashes.

java.lang.NullPointerException
at com.zj.btsdk.BluetoothService$AcceptThread.run(BluetoothService.java:316)

@invicnaper
Copy link
Owner

Have you tried out the app using a real Device ?

@ShreyashPromact
Copy link

It is getting crashed after starting of the application. It shows android.os.NetworkOnMainThreadException.

@invicnaper is it possible to print the HTML content by this code?

Sincerely,
Shreyash

@invicnaper
Copy link
Owner

@kevinvanzyl if your PC do not support Bluetooth , you'll get a Null Pointer Exception while testing it with the Android Emulator .

@arifabas
Copy link

Your project is amazing. I want to ask, how can I get webview to read window.print () on android and print on thermal printer zjiang?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants