Bluetooth do not dereference null pointer