Program: 37542
Project: 37542
Buggy source:
private void connectClient(){
  Uri.Builder uriBuilder=parsedUri.buildUpon();
  uriBuilder.appendQueryParameter("String_Node_Str",connectionId);
  uriBuilder.scheme(parsedUri.getScheme().replace("String_Node_Str","String_Node_Str"));
  Uri uri=uriBuilder.build();
  Map<String,String> headers=new HashMap<>();
  if (authHeader != null && !authHeader.isEmpty()) {
    headers.put("String_Node_Str",authHeader);
  }
  try {
    client=new WebSocketClient(new URI(uri.toString()),new Draft_6455(),headers,15000){
      @Override public void onOpen(      ServerHandshake handshakeData){
        Log.i(TAG,"String_Node_Str");
        for (        HubConnectionListener listener : listeners) {
          listener.onConnected();
        }
        send("String_Node_Str" + SPECIAL_SYMBOL);
      }
      @Override public void onMessage(      String message){
        Log.i(TAG,message);
        String[] messages=message.split(SPECIAL_SYMBOL);
        for (        String m : messages) {
          SignalRMessage element=gson.fromJson(m,SignalRMessage.class);
          if (element.getType() == 1) {
            HubMessage hubMessage=new HubMessage(element.getInvocationId(),element.getTarget(),element.getArguments());
            for (            HubConnectionListener listener : listeners) {
              listener.onMessage(hubMessage);
            }
            List<HubEventListener> hubEventListeners=eventListeners.get(hubMessage.getTarget());
            if (hubEventListeners != null) {
              for (              HubEventListener listener : hubEventListeners) {
                listener.onEventMessage(hubMessage);
              }
            }
          }
        }
      }
      @Override public void onClose(      int code,      String reason,      boolean remote){
        Log.i(TAG,String.format("String_Node_Str",code,reason,remote));
        for (        HubConnectionListener listener : listeners) {
          listener.onDisconnected();
        }
        connectionId=null;
      }
      @Override public void onError(      Exception ex){
        Log.i(TAG,"String_Node_Str" + ex.getMessage());
        error(ex);
      }
    }
;
    if (parsedUri.getScheme().equals("String_Node_Str")) {
      client.setSocket(SSLSocketFactory.getDefault().createSocket());
    }
  }
 catch (  Exception e) {
    error(e);
  }
  Log.i(TAG,"String_Node_Str");
  client.connect();
}

Fixed version (ground truth):
private void connectClient(){
  Uri.Builder uriBuilder=parsedUri.buildUpon();
  uriBuilder.appendQueryParameter("String_Node_Str",connectionId);
  uriBuilder.scheme(parsedUri.getScheme().replace("String_Node_Str","String_Node_Str"));
  Uri uri=uriBuilder.build();
  Map<String,String> headers=new HashMap<>();
  if (authHeader != null && !authHeader.isEmpty()) {
    headers.put("String_Node_Str",authHeader);
  }
  try {
    client=new WebSocketClient(new URI(uri.toString()),new Draft_6455(),headers,15000){
      @Override public void onOpen(      ServerHandshake handshakeData){
        Log.i(TAG,"String_Node_Str");
        for (        HubConnectionListener listener : listeners) {
          listener.onConnected();
        }
        send("String_Node_Str" + SPECIAL_SYMBOL);
      }
      @Override public void onMessage(      String message){
        Log.i(TAG,message);
        String[] messages=message.split(SPECIAL_SYMBOL);
        for (        String m : messages) {
          SignalRMessage element=gson.fromJson(m,SignalRMessage.class);
          Integer type=element.getType();
          if (type != null && type == 1) {
            HubMessage hubMessage=new HubMessage(element.getInvocationId(),element.getTarget(),element.getArguments());
            for (            HubConnectionListener listener : listeners) {
              listener.onMessage(hubMessage);
            }
            List<HubEventListener> hubEventListeners=eventListeners.get(hubMessage.getTarget());
            if (hubEventListeners != null) {
              for (              HubEventListener listener : hubEventListeners) {
                listener.onEventMessage(hubMessage);
              }
            }
          }
        }
      }
      @Override public void onClose(      int code,      String reason,      boolean remote){
        Log.i(TAG,String.format("String_Node_Str",code,reason,remote));
        for (        HubConnectionListener listener : listeners) {
          listener.onDisconnected();
        }
        connectionId=null;
      }
      @Override public void onError(      Exception ex){
        Log.i(TAG,"String_Node_Str" + ex.getMessage());
        error(ex);
      }
    }
;
    if (parsedUri.getScheme().equals("String_Node_Str")) {
      client.setSocket(SSLSocketFactory.getDefault().createSocket());
    }
  }
 catch (  Exception e) {
    error(e);
  }
  Log.i(TAG,"String_Node_Str");
  client.connect();
}