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

Many NullPointer AppCrashes #615

Closed
EinfachHans opened this issue Jun 19, 2020 · 6 comments
Closed

Many NullPointer AppCrashes #615

EinfachHans opened this issue Jun 19, 2020 · 6 comments

Comments

@EinfachHans
Copy link
Contributor

We received many many Crashes caused of this Plugin by a NullPointer Exception:

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.bluetooth.BluetoothGattServer.close()' on a null object reference

com.randdusing.bluetoothle.BluetoothLePlugin$1.onReceive BluetoothLePlugin.java:2798
android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args LoadedApk.java:1646
android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run
android.os.Handler.handleCallback Handler.java:883
android.os.Handler.dispatchMessage Handler.java:100
android.os.Looper.loop Looper.java:237
android.app.ActivityThread.main ActivityThread.java:8019
java.lang.reflect.Method.invoke Method.java
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run RuntimeInit.java:493
com.android.internal.os.ZygoteInit.main ZygoteInit.java:1100

Bildschirmfoto 2020-06-19 um 12 01 47

@randdusing
Copy link
Owner

Looks to be related to this change: 4382eb0
Looks like TURNING_OFF can be triggered when not expected. A simple null check should suffice.

@EinfachHans
Copy link
Contributor Author

Is it possible that you can release a quick fix Version for this?

@randdusing
Copy link
Owner

PRs are always welcome, but I may be able to raise one myself this week

@EinfachHans
Copy link
Contributor Author

Just create the PR. That was not possible for my Java knowledge😃

@randdusing
Copy link
Owner

I've released 4.15.14, so this should be fixed now.

@EinfachHans
Copy link
Contributor Author

I was able to force the Crash by toggling Airplane Mode. This doesn't crashed now to think it works. Thanks 😊

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

2 participants