Program: 14763
Project: 14763
Buggy source:
private void fireClockTick(final Hertz tick){
  try {
    Component.State systemState;
    try {
      systemState=this.configuration.lookupState();
    }
 catch (    final NoSuchElementException ex1) {
      this.stop();
      return;
    }
    final boolean initialized=systemState.ordinal() > Component.State.LOADED.ordinal();
    if (!this.stateMachine.isBusy()) {
      Callable<CheckedListenableFuture<Cluster>> transition=null;
switch (this.stateMachine.getState()) {
case PENDING:
case AUTHENTICATING:
case STARTING:
        if (tick.isAsserted(Clusters.getConfiguration().getPendingInterval())) {
          transition=startingTransition();
        }
      break;
case NOTREADY:
    if (initialized && tick.isAsserted(Clusters.getConfiguration().getNotreadyInterval())) {
      transition=notreadyTransition();
    }
  break;
case DISABLED:
if (initialized && tick.isAsserted(Clusters.getConfiguration().getDisabledInterval()) && (Component.State.DISABLED.equals(systemState) || Component.State.NOTREADY.equals(systemState))) {
  transition=disabledTransition();
}
 else if (initialized && tick.isAsserted(Clusters.getConfiguration().getDisabledInterval()) && Component.State.ENABLED.equals(systemState)) {
  transition=enablingTransition();
}
break;
case ENABLED:
if (initialized && tick.isAsserted(Clusters.getConfiguration().getEnabledInterval()) && Component.State.ENABLED.equals(this.configuration.lookupState())) {
transition=enabledTransition();
}
 else if (initialized && tick.isAsserted(VmInstances.VOLATILE_STATE_INTERVAL_SEC) && Component.State.ENABLED.equals(this.configuration.lookupState())) {
Refresh.VOLATILE_INSTANCES.apply(this);
}
 else if ((initialized && Component.State.DISABLED.equals(this.configuration.lookupState())) || Component.State.NOTREADY.equals(this.configuration.lookupState())) {
transition=disableTransition();
}
break;
default :
break;
}
if (transition != null) {
try {
transition.call().get();
Cluster.this.clearExceptions();
}
 catch (final Exception ex) {
LOG.error(ex,ex);
}
}
}
}
 catch (final Exception ex) {
LOG.error(ex,ex);
}
}

Fixed version (ground truth):
private void fireClockTick(final Hertz tick){
  try {
    Component.State systemState;
    try {
      systemState=this.configuration.lookupState();
    }
 catch (    final NoSuchElementException ex1) {
      this.stop();
      return;
    }
    final boolean initialized=systemState.ordinal() > Component.State.LOADED.ordinal();
    if (!this.stateMachine.isBusy()) {
      Callable<CheckedListenableFuture<Cluster>> transition=null;
switch (this.stateMachine.getState()) {
case PENDING:
case AUTHENTICATING:
case STARTING:
        if (tick.isAsserted(Clusters.getConfiguration().getPendingInterval())) {
          transition=startingTransition();
        }
      break;
case NOTREADY:
    if (initialized && tick.isAsserted(Clusters.getConfiguration().getNotreadyInterval())) {
      transition=notreadyTransition();
    }
  break;
case DISABLED:
if (initialized && tick.isAsserted(Clusters.getConfiguration().getDisabledInterval()) && (Component.State.DISABLED.equals(systemState) || Component.State.NOTREADY.equals(systemState))) {
  transition=disabledTransition();
}
 else if (initialized && tick.isAsserted(Clusters.getConfiguration().getDisabledInterval()) && Component.State.ENABLED.equals(systemState)) {
  transition=enablingTransition();
}
break;
case ENABLING:
case ENABLING_RESOURCES:
case ENABLING_NET:
case ENABLING_VMS:
case ENABLING_ADDRS:
case ENABLING_VMS_PASS_TWO:
case ENABLING_ADDRS_PASS_TWO:
case ENABLED:
case ENABLED_ADDRS:
case ENABLED_RSC:
case ENABLED_NET:
case ENABLED_VMS:
case ENABLED_SERVICE_CHECK:
if (initialized && tick.isAsserted(Clusters.getConfiguration().getEnabledInterval()) && Component.State.ENABLED.equals(this.configuration.lookupState())) {
transition=enabledTransition();
}
 else if (initialized && tick.isAsserted(VmInstances.VOLATILE_STATE_INTERVAL_SEC) && Component.State.ENABLED.equals(this.configuration.lookupState())) {
Refresh.VOLATILE_INSTANCES.apply(this);
}
 else if ((initialized && Component.State.DISABLED.equals(this.configuration.lookupState())) || Component.State.NOTREADY.equals(this.configuration.lookupState())) {
transition=disableTransition();
}
break;
default :
break;
}
if (transition != null) {
try {
transition.call().get();
Cluster.this.clearExceptions();
}
 catch (final Exception ex) {
LOG.error(ex,ex);
}
}
}
}
 catch (final Exception ex) {
LOG.error(ex,ex);
}
}