Program: 145490
Project: 145490
Buggy source:
private void tryToInitializeAndBindSensorAcceptor(String protocol,InetSocketAddress s) throws IOException, Exception {
  Logger logger=Logger.getLogger(ServerMain.class.getName());
  if (com.eas.sensors.positioning.AcceptorsFactory.isSupported(protocol)) {
    String acceptorModuleId=findAcceptorModule(protocol);
    if (acceptorModuleId != null) {
      Integer numWorkerThreads=portsNumWorkerThreads != null ? portsNumWorkerThreads.get(s.getPort()) : null;
      if (numWorkerThreads == null || numWorkerThreads == 0) {
        numWorkerThreads=DEFAULT_EXECUTOR_POOL_SIZE;
      }
      Integer sessionIdleTime=portsSessionIdleTimeouts != null ? portsSessionIdleTimeouts.get(s.getPort()) : null;
      if (sessionIdleTime == null || sessionIdleTime == 0) {
        sessionIdleTime=360;
      }
      Integer sessionIdleCheckInterval=portsSessionIdleCheckIntervals != null ? portsSessionIdleCheckIntervals.get(s.getPort()) : null;
      if (sessionIdleCheckInterval == null || sessionIdleCheckInterval == 0) {
        sessionIdleCheckInterval=360;
      }
      IoAcceptor sensorAcceptor=com.eas.sensors.positioning.AcceptorsFactory.create(protocol,numWorkerThreads,sessionIdleTime,sessionIdleCheckInterval,new com.eas.server.handlers.PositioningPacketReciever(this,acceptorModuleId));
      if (sensorAcceptor != null) {
        sensorAcceptor.bind(s);
        logger.info(String.format("String_Node_Str",s.toString(),protocol));
      }
    }
 else {
      logger.info(String.format("String_Node_Str",protocol));
    }
  }
 else {
    logger.info(String.format("String_Node_Str",protocol));
  }
}

Fixed version (ground truth):
private void tryToInitializeAndBindSensorAcceptor(String protocol,InetSocketAddress s) throws IOException, Exception {
  Logger logger=Logger.getLogger(ServerMain.class.getName());
  if (com.eas.sensors.positioning.AcceptorsFactory.isSupported(protocol)) {
    String acceptorModuleId=findAcceptorModule(protocol);
    if (acceptorModuleId != null) {
      Integer numWorkerThreads=portsNumWorkerThreads != null ? portsNumWorkerThreads.get(s.getPort()) : null;
      if (numWorkerThreads == null || numWorkerThreads == 0) {
        numWorkerThreads=DEFAULT_EXECUTOR_POOL_SIZE;
      }
      Integer sessionIdleTime=portsSessionIdleTimeouts != null ? portsSessionIdleTimeouts.get(s.getPort()) : null;
      if (sessionIdleTime == null || sessionIdleTime == 0) {
        sessionIdleTime=360;
      }
      Integer sessionIdleCheckInterval=portsSessionIdleCheckIntervals != null ? portsSessionIdleCheckIntervals.get(s.getPort()) : null;
      if (sessionIdleCheckInterval == null || sessionIdleCheckInterval == 0) {
        sessionIdleCheckInterval=360;
      }
      IoAcceptor sensorAcceptor=com.eas.sensors.positioning.AcceptorsFactory.create(protocol,numWorkerThreads,sessionIdleTime,sessionIdleCheckInterval,new com.eas.server.handlers.PositioningPacketReciever(this,acceptorModuleId,numWorkerThreads));
      if (sensorAcceptor != null) {
        sensorAcceptor.bind(s);
        logger.info(String.format("String_Node_Str",s.toString(),protocol));
      }
    }
 else {
      logger.info(String.format("String_Node_Str",protocol));
    }
  }
 else {
    logger.info(String.format("String_Node_Str",protocol));
  }
}