OSDN Git Service

Bluetooth: Ensure Bluetooth interface handle is valid
authorNitin Arora <niarora@codeaurora.org>
Wed, 29 Apr 2015 19:35:03 +0000 (12:35 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 7 May 2015 05:24:23 +0000 (22:24 -0700)
commitbdfaa7f566a0fbe59dfc6bc14cd9d4d92b9259fa
tree4ef090909c68cc7eae82e295c2605eaa421756b6
parent9132c5ab0746f56909ed5630a6e93c9fadefabd0
Bluetooth: Ensure Bluetooth interface handle is valid

This change adds null checks to Bluetooth interface handle to prevent
using null references when BluetoothService is not up. Also removed
the callbacks for the intermediate state removed for now as they are
not being used.

Change-Id: I0e72ff4da467a8bcf5a4e5ac48d8558e7f308c7e
services/core/java/com/android/server/BluetoothManagerService.java