Program: 32427
Project: 32427
Buggy source:
public void forceHardwareConnectEvent(TransportType type){
  if (_transport == null) {
    Log.w(TAG,"String_Node_Str");
    return;
  }
  if (isLegacyModeEnabled()) {
    enableLegacyMode(false,null);
  }
  if (_transport != null && (_transport.getTransportType() == TransportType.MULTIPLEX)) {
    MultiplexTransport multi=((MultiplexTransport)_transport);
    MultiplexTransportConfig config=multi.getConfig();
    ComponentName tempCompName=SdlBroadcastReceiver.consumeQueuedRouterService();
    if (config.getService().equals(tempCompName)) {
      boolean forced=multi.forceHardwareConnectEvent(TransportType.BLUETOOTH);
      if (!forced && multi.isDisconnecting()) {
        _transport=new MultiplexTransport(config,this);
        ((MultiplexTransport)_transport).forceHardwareConnectEvent(TransportType.BLUETOOTH);
      }
    }
 else     if (tempCompName != null) {
      Log.w(TAG,"String_Node_Str");
      Log.w(TAG,"String_Node_Str" + config.getService().toShortString());
      Log.w(TAG,"String_Node_Str" + tempCompName.toString());
      multi.disconnect();
      config.setService(tempCompName);
      _transport=new MultiplexTransport(config,this);
      try {
        startTransport();
      }
 catch (      SdlException e) {
        e.printStackTrace();
      }
      ((MultiplexTransport)_transport).forceHardwareConnectEvent(TransportType.BLUETOOTH);
    }
  }
 else   if (_transport.getTransportType() == TransportType.BLUETOOTH && !_transport.getIsConnected()) {
    if (cachedMultiConfig != null) {
      ComponentName tempCompName=SdlBroadcastReceiver.consumeQueuedRouterService();
      cachedMultiConfig.setService(tempCompName);
      _transport.disconnect();
    }
 else {
      Log.i(TAG,"String_Node_Str");
      _transport.disconnect();
    }
    Log.w(TAG,"String_Node_Str");
  }
 else {
    Log.w(TAG,"String_Node_Str");
  }
}

Fixed version (ground truth):
public void forceHardwareConnectEvent(TransportType type){
  if (_transport == null) {
    Log.w(TAG,"String_Node_Str");
    return;
  }
  if (isLegacyModeEnabled()) {
    enableLegacyMode(false,null);
  }
  if (_transport != null && (_transport.getTransportType() == TransportType.MULTIPLEX)) {
    MultiplexTransport multi=((MultiplexTransport)_transport);
    MultiplexTransportConfig config=multi.getConfig();
    ComponentName tempCompName=SdlBroadcastReceiver.consumeQueuedRouterService();
    if (config.getService().equals(tempCompName)) {
      if (!multi.getIsConnected() && multi.isDisconnecting()) {
        _transport=new MultiplexTransport(config,this);
        try {
          startTransport();
        }
 catch (        SdlException e) {
          e.printStackTrace();
        }
      }
    }
 else     if (tempCompName != null) {
      Log.w(TAG,"String_Node_Str");
      Log.w(TAG,"String_Node_Str" + config.getService().toShortString());
      Log.w(TAG,"String_Node_Str" + tempCompName.toString());
      multi.disconnect();
      config.setService(tempCompName);
      _transport=new MultiplexTransport(config,this);
      try {
        startTransport();
      }
 catch (      SdlException e) {
        e.printStackTrace();
      }
    }
  }
 else   if (_transport.getTransportType() == TransportType.BLUETOOTH && !_transport.getIsConnected()) {
    if (cachedMultiConfig != null) {
      ComponentName tempCompName=SdlBroadcastReceiver.consumeQueuedRouterService();
      cachedMultiConfig.setService(tempCompName);
      _transport.disconnect();
    }
 else {
      Log.i(TAG,"String_Node_Str");
      _transport.disconnect();
    }
    Log.w(TAG,"String_Node_Str");
  }
 else {
    Log.w(TAG,"String_Node_Str");
  }
}