Program: 46747
Project: 46747
Buggy source:
public EventServiceImpl(NodeEngineImpl nodeEngine){
  this.nodeEngine=nodeEngine;
  this.serializationService=nodeEngine.getSerializationService();
  this.logger=nodeEngine.getLogger(EventService.class.getName());
  final Node node=nodeEngine.getNode();
  GroupProperties groupProperties=node.getGroupProperties();
  this.eventThreadCount=groupProperties.getInteger(GroupProperty.EVENT_THREAD_COUNT);
  this.eventQueueCapacity=groupProperties.getInteger(GroupProperty.EVENT_QUEUE_CAPACITY);
  this.eventQueueTimeoutMs=groupProperties.getMillis(GroupProperty.EVENT_QUEUE_TIMEOUT_MILLIS);
  final String eventSyncFrequencyProp=System.getProperty(EVENT_SYNC_FREQUENCY_PROP);
  int eventSyncFrequency;
  try {
    eventSyncFrequency=Integer.parseInt(eventSyncFrequencyProp);
    if (eventSyncFrequency <= 0) {
      eventSyncFrequency=EVENT_SYNC_FREQUENCY;
    }
  }
 catch (  Exception e) {
    eventSyncFrequency=EVENT_SYNC_FREQUENCY;
  }
  this.eventSyncFrequency=eventSyncFrequency;
  HazelcastThreadGroup threadGroup=node.getHazelcastThreadGroup();
  this.eventExecutor=new StripedExecutor(node.getLogger(EventServiceImpl.class),threadGroup.getThreadNamePrefix("String_Node_Str"),threadGroup.getInternalThreadGroup(),eventThreadCount,eventQueueCapacity);
  this.registrationExceptionHandler=new FutureUtilExceptionHandler(logger,"String_Node_Str");
  this.deregistrationExceptionHandler=new FutureUtilExceptionHandler(logger,"String_Node_Str");
  this.segments=new ConcurrentHashMap<String,EventServiceSegment>();
  nodeEngine.getMetricsRegistry().scanAndRegister(this,"String_Node_Str");
}

Fixed version (ground truth):
public EventServiceImpl(NodeEngineImpl nodeEngine){
  this.nodeEngine=nodeEngine;
  this.serializationService=nodeEngine.getSerializationService();
  this.logger=nodeEngine.getLogger(EventService.class.getName());
  GroupProperties groupProperties=nodeEngine.getNode().getGroupProperties();
  this.eventThreadCount=groupProperties.getInteger(GroupProperty.EVENT_THREAD_COUNT);
  this.eventQueueCapacity=groupProperties.getInteger(GroupProperty.EVENT_QUEUE_CAPACITY);
  this.eventQueueTimeoutMs=groupProperties.getMillis(GroupProperty.EVENT_QUEUE_TIMEOUT_MILLIS);
  int eventSyncFrequency;
  try {
    eventSyncFrequency=Integer.parseInt(System.getProperty(EVENT_SYNC_FREQUENCY_PROP));
    if (eventSyncFrequency <= 0) {
      eventSyncFrequency=EVENT_SYNC_FREQUENCY;
    }
  }
 catch (  Exception e) {
    eventSyncFrequency=EVENT_SYNC_FREQUENCY;
  }
  this.eventSyncFrequency=eventSyncFrequency;
  HazelcastThreadGroup threadGroup=nodeEngine.getNode().getHazelcastThreadGroup();
  this.eventExecutor=new StripedExecutor(nodeEngine.getNode().getLogger(EventServiceImpl.class),threadGroup.getThreadNamePrefix("String_Node_Str"),threadGroup.getInternalThreadGroup(),eventThreadCount,eventQueueCapacity);
  this.registrationExceptionHandler=new FutureUtilExceptionHandler(logger,"String_Node_Str");
  this.deregistrationExceptionHandler=new FutureUtilExceptionHandler(logger,"String_Node_Str");
  this.segments=new ConcurrentHashMap<String,EventServiceSegment>();
  nodeEngine.getMetricsRegistry().scanAndRegister(this,"String_Node_Str");
}