From 78ff1a658b9eac751228ff64ca7f415a9a00e738 Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Wed, 22 Jun 2011 16:54:43 -0700 Subject: [PATCH] Get the profile proxies after the BT Service is up. Trying to get the profile proxies before service is up will cause a NPE. Change-Id: I604041d6823775abbc2fe10794afaac83d6827ce --- core/java/android/server/BluetoothBondState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/server/BluetoothBondState.java b/core/java/android/server/BluetoothBondState.java index 39c3c8854533b..5fa8836c1d9c5 100644 --- a/core/java/android/server/BluetoothBondState.java +++ b/core/java/android/server/BluetoothBondState.java @@ -79,7 +79,6 @@ class BluetoothBondState { mService = service; mBluetoothInputProfileHandler = BluetoothInputProfileHandler.getInstance(mContext, mService); - getProfileProxy(); } synchronized void setPendingOutgoingBonding(String address) { @@ -109,6 +108,7 @@ class BluetoothBondState { mState.put(mService.getAddressFromObjectPath(device).toUpperCase(), BluetoothDevice.BOND_BONDED); } + getProfileProxy(); } public synchronized void setBondState(String address, int state) {