Program: 14055
Project: 14055
Buggy source:
public GetPasswordDataResponseType getPasswordData(final GetPasswordDataType request) throws Exception {
  final String instanceId=normalizeIdentifier(request.getInstanceId());
  final VmInstance v;
  try {
    v=VmInstances.lookup(instanceId);
  }
 catch (  NoSuchElementException e) {
    throw new ClientComputeException("String_Node_Str","String_Node_Str" + instanceId + "String_Node_Str");
  }
  if (!RestrictedTypes.filterPrivileged().apply(v)) {
    throw new EucalyptusCloudException("String_Node_Str" + instanceId + "String_Node_Str");
  }
  if (!VmState.RUNNING.equals(v.getState())) {
    throw new EucalyptusCloudException("String_Node_Str" + instanceId + "String_Node_Str");
  }
  if (v.getPasswordData() == null && !Strings.isNullOrEmpty(v.getKeyPair().getPublicKey())) {
    try {
      final GetConsoleOutputResponseType consoleOutput=getConsoleOutput(new GetConsoleOutputType(instanceId));
      final String tempCo=B64.standard.decString(String.valueOf(consoleOutput.getOutput())).replaceAll("String_Node_Str","String_Node_Str");
      final String passwordData=substringBefore("String_Node_Str",substringAfter("String_Node_Str",tempCo));
      if (tempCo.matches("String_Node_Str")) {
        Entities.asTransaction(VmInstance.class,new Predicate<String>(){
          @Override public boolean apply(          final String passwordData){
            final VmInstance vm=Entities.merge(v);
            vm.updatePasswordData(passwordData);
            return true;
          }
        }
).apply(passwordData);
        v.updatePasswordData(passwordData);
      }
    }
 catch (    final EucalyptusCloudException e) {
      throw e;
    }
catch (    Exception e) {
      throw new ComputeException("String_Node_Str","String_Node_Str" + e.getMessage());
    }
  }
  final GetPasswordDataResponseType reply=request.getReply();
  reply.set_return(true);
  reply.setOutput(Strings.nullToEmpty(v.getPasswordData()));
  reply.setTimestamp(new Date());
  reply.setInstanceId(v.getInstanceId());
  return reply;
}

Fixed version (ground truth):
public GetPasswordDataResponseType getPasswordData(final GetPasswordDataType request) throws Exception {
  final String instanceId=normalizeIdentifier(request.getInstanceId());
  final VmInstance v;
  try {
    v=VmInstances.lookup(instanceId);
  }
 catch (  NoSuchElementException e) {
    throw new ClientComputeException("String_Node_Str","String_Node_Str" + instanceId + "String_Node_Str");
  }
  if (!RestrictedTypes.filterPrivileged().apply(v)) {
    throw new EucalyptusCloudException("String_Node_Str" + instanceId + "String_Node_Str");
  }
  if (!VmState.RUNNING.equals(v.getState())) {
    throw new EucalyptusCloudException("String_Node_Str" + instanceId + "String_Node_Str");
  }
  if (v.getPasswordData() == null && !Strings.isNullOrEmpty(v.getKeyPair().getPublicKey())) {
    try {
      final GetConsoleOutputResponseType consoleOutput=getConsoleOutput(new GetConsoleOutputType((String)instanceId));
      final String tempCo=B64.standard.decString(String.valueOf(consoleOutput.getOutput())).replaceAll("String_Node_Str","String_Node_Str");
      final String passwordData=substringBefore("String_Node_Str",substringAfter("String_Node_Str",tempCo));
      if (tempCo.matches("String_Node_Str")) {
        Entities.asTransaction(VmInstance.class,new Predicate<String>(){
          @Override public boolean apply(          final String passwordData){
            final VmInstance vm=Entities.merge(v);
            vm.updatePasswordData(passwordData);
            return true;
          }
        }
).apply(passwordData);
        v.updatePasswordData(passwordData);
      }
    }
 catch (    final EucalyptusCloudException e) {
      throw e;
    }
catch (    Exception e) {
      throw new ComputeException("String_Node_Str","String_Node_Str" + e.getMessage());
    }
  }
  final GetPasswordDataResponseType reply=request.getReply();
  reply.set_return(true);
  reply.setOutput(Strings.nullToEmpty(v.getPasswordData()));
  reply.setTimestamp(new Date());
  reply.setInstanceId(v.getInstanceId());
  return reply;
}