Program: 105049
Project: 105049
Buggy source:
/** 
 * Initializes   {@link #tcpHostHarvester}.
 */
private void initializeTcpHarvester(){
synchronized (IceUdpTransportManager.class) {
    if (tcpHostHarvesterInitialized)     return;
    tcpHostHarvesterInitialized=true;
    ConfigurationService cfg=conference.getVideobridge().getConfigurationService();
    boolean fallback=false;
    if (!cfg.getBoolean(DISABLE_TCP_HARVESTER,false)) {
      boolean ssltcp=cfg.getBoolean(TCP_HARVESTER_SSLTCP,TCP_HARVESTER_SSLTCP_DEFAULT);
      int port=cfg.getInt(TCP_HARVESTER_PORT,-1);
      if (port == -1) {
        fallback=true;
        port=TCP_DEFAULT_PORT;
      }
      try {
        tcpHostHarvester=new MultiplexingTcpHostHarvester(port,ssltcp);
      }
 catch (      IOException ioe) {
        logger.warn("String_Node_Str" + port + "String_Node_Str"+ ioe+ (fallback ? "String_Node_Str" + TCP_FALLBACK_PORT : "String_Node_Str")+ "String_Node_Str");
      }
      if (fallback) {
        port=TCP_FALLBACK_PORT;
        try {
          tcpHostHarvester=new MultiplexingTcpHostHarvester(port,ssltcp);
        }
 catch (        IOException e) {
          logger.warn("String_Node_Str" + "String_Node_Str" + port + "String_Node_Str"+ e);
          return;
        }
      }
      if (logger.isInfoEnabled()) {
        logger.info("String_Node_Str" + port + "String_Node_Str"+ ssltcp);
      }
      String localAddressStr=cfg.getString(NAT_HARVESTER_LOCAL_ADDRESS);
      String publicAddressStr=cfg.getString(NAT_HARVESTER_PUBLIC_ADDRESS);
      if (localAddressStr != null && publicAddressStr != null) {
        try {
          tcpHostHarvester.addMappedAddress(InetAddress.getByName(publicAddressStr),InetAddress.getByName(localAddressStr));
        }
 catch (        UnknownHostException uhe) {
          logger.warn("String_Node_Str" + publicAddressStr + "String_Node_Str"+ localAddressStr+ "String_Node_Str"+ uhe);
        }
      }
      int mappedPort=cfg.getInt(TCP_HARVESTER_MAPPED_PORT,-1);
      if (mappedPort != -1) {
        tcpHostHarvesterMappedPort=mappedPort;
        tcpHostHarvester.addMappedPort(mappedPort);
      }
      if (AwsCandidateHarvester.smellsLikeAnEC2()) {
        TransportAddress localAddress=AwsCandidateHarvester.getFace();
        TransportAddress publicAddress=AwsCandidateHarvester.getMask();
        if (localAddress != null && publicAddress != null) {
          tcpHostHarvester.addMappedAddress(publicAddress.getAddress(),localAddress.getAddress());
        }
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Initializes   {@link #tcpHostHarvester}.
 */
private void initializeTcpHarvester(){
synchronized (IceUdpTransportManager.class) {
    if (tcpHostHarvesterInitialized)     return;
    tcpHostHarvesterInitialized=true;
    ConfigurationService cfg=conference.getVideobridge().getConfigurationService();
    boolean fallback=false;
    if (!cfg.getBoolean(DISABLE_TCP_HARVESTER,false)) {
      boolean ssltcp=cfg.getBoolean(TCP_HARVESTER_SSLTCP,TCP_HARVESTER_SSLTCP_DEFAULT);
      int port=cfg.getInt(TCP_HARVESTER_PORT,-1);
      if (port == -1) {
        fallback=true;
        port=TCP_DEFAULT_PORT;
      }
      try {
        tcpHostHarvester=new MultiplexingTcpHostHarvester(port,ssltcp);
      }
 catch (      IOException ioe) {
        logger.warn("String_Node_Str" + port + "String_Node_Str"+ ioe+ (fallback ? "String_Node_Str" + TCP_FALLBACK_PORT : "String_Node_Str")+ "String_Node_Str");
      }
      if (tcpHostHarvester == null && fallback) {
        port=TCP_FALLBACK_PORT;
        try {
          tcpHostHarvester=new MultiplexingTcpHostHarvester(port,ssltcp);
        }
 catch (        IOException e) {
          logger.warn("String_Node_Str" + "String_Node_Str" + port + "String_Node_Str"+ e);
          return;
        }
      }
      if (logger.isInfoEnabled()) {
        logger.info("String_Node_Str" + port + "String_Node_Str"+ ssltcp);
      }
      String localAddressStr=cfg.getString(NAT_HARVESTER_LOCAL_ADDRESS);
      String publicAddressStr=cfg.getString(NAT_HARVESTER_PUBLIC_ADDRESS);
      if (localAddressStr != null && publicAddressStr != null) {
        try {
          tcpHostHarvester.addMappedAddress(InetAddress.getByName(publicAddressStr),InetAddress.getByName(localAddressStr));
        }
 catch (        UnknownHostException uhe) {
          logger.warn("String_Node_Str" + publicAddressStr + "String_Node_Str"+ localAddressStr+ "String_Node_Str"+ uhe);
        }
      }
      int mappedPort=cfg.getInt(TCP_HARVESTER_MAPPED_PORT,-1);
      if (mappedPort != -1) {
        tcpHostHarvesterMappedPort=mappedPort;
        tcpHostHarvester.addMappedPort(mappedPort);
      }
      if (AwsCandidateHarvester.smellsLikeAnEC2()) {
        TransportAddress localAddress=AwsCandidateHarvester.getFace();
        TransportAddress publicAddress=AwsCandidateHarvester.getMask();
        if (localAddress != null && publicAddress != null) {
          tcpHostHarvester.addMappedAddress(publicAddress.getAddress(),localAddress.getAddress());
        }
      }
    }
  }
}