summaryrefslogtreecommitdiffstats
path: root/src/com/android/bluetooth/btservice/ProfileService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/bluetooth/btservice/ProfileService.java')
-rwxr-xr-xsrc/com/android/bluetooth/btservice/ProfileService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/btservice/ProfileService.java b/src/com/android/bluetooth/btservice/ProfileService.java
index 0c021620d..c3802fb60 100755
--- a/src/com/android/bluetooth/btservice/ProfileService.java
+++ b/src/com/android/bluetooth/btservice/ProfileService.java
@@ -113,6 +113,8 @@ public abstract class ProfileService extends Service {
public int onStartCommand(Intent intent, int flags, int startId) {
if (DBG) log("onStartCommand()");
+ if(mAdapterService == null)
+ mAdapterService = AdapterService.getAdapterService();
if (mStartError || mAdapter == null) {
Log.w(mName, "Stopping profile service: device does not have BT");
doStop(intent);