ossw / ossw-firmware-s120

OSSW firmware for S120 2.0.0 softdevice
42 stars 9 forks source link

App crash on "Watches" #44

Closed adderek closed 8 years ago

adderek commented 8 years ago

Hi, When the app is started without bluetooth available and user goes to "Watches" menu, then crash will occur: Source at revision: b3ef444 "0.5.0-beta2 release" Cause: DeviceScanFragment.java::onCreateView if (!mBluetoothAdapter.isEnabled()) { Toast.makeText(...); } if (!mBluetoothAdapter.isEnabled()) { ...} App continue to run even when the mBluetoothAdapter is null and it tries to call isEnabled method of NULL.

adderek commented 8 years ago

Returning a null when bluetooth is not supported seems to kinda solve the issue (there are errors inside the app but at least it does not crash).

adderek commented 8 years ago

I have just noticed that the issue is in wrong place - should be in ossw-android. sorry for that