Program: 14078
Project: 14078
Buggy source:
public static InstanceProfileType getInstanceProfile(ServiceConfiguration configuration,String instanceProfileName,String effectiveUserId) throws Exception {
  InstanceProfileType retVal=null;
  boolean seenAllInstanceProfiles=false;
  String instanceProfileMarker=null;
  while (!seenAllInstanceProfiles && retVal == null) {
    ListInstanceProfilesType listInstanceProfilesType=MessageHelper.createMessage(ListInstanceProfilesType.class,effectiveUserId);
    if (instanceProfileMarker != null) {
      listInstanceProfilesType.setMarker(instanceProfileMarker);
    }
    ListInstanceProfilesResponseType listInstanceProfilesResponseType=AsyncRequests.<ListInstanceProfilesType,ListInstanceProfilesResponseType>sendSync(configuration,listInstanceProfilesType);
    if (listInstanceProfilesResponseType.getListInstanceProfilesResult().getIsTruncated() == Boolean.TRUE) {
      instanceProfileMarker=listInstanceProfilesResponseType.getListInstanceProfilesResult().getMarker();
    }
 else {
      seenAllInstanceProfiles=true;
    }
    if (listInstanceProfilesResponseType.getListInstanceProfilesResult().getInstanceProfiles() != null && listInstanceProfilesResponseType.getListInstanceProfilesResult().getInstanceProfiles().getMember() != null) {
      for (      InstanceProfileType instanceProfileType : listInstanceProfilesResponseType.getListInstanceProfilesResult().getInstanceProfiles().getMember()) {
        if (instanceProfileType.getInstanceProfileName().equals(instanceProfileName)) {
          retVal=instanceProfileType;
          break;
        }
      }
    }
  }
  return retVal;
}

Fixed version (ground truth):
public static InstanceProfileType getInstanceProfile(ServiceConfiguration configuration,String instanceProfileName,String effectiveUserId) throws Exception {
  InstanceProfileType retVal=null;
  boolean seenAllInstanceProfiles=false;
  String instanceProfileMarker=null;
  while (!seenAllInstanceProfiles && retVal == null) {
    ListInstanceProfilesType listInstanceProfilesType=MessageHelper.createMessage(ListInstanceProfilesType.class,effectiveUserId);
    if (instanceProfileMarker != null) {
      listInstanceProfilesType.setMarker(instanceProfileMarker);
    }
    ListInstanceProfilesResponseType listInstanceProfilesResponseType=AsyncRequests.<ListInstanceProfilesType,ListInstanceProfilesResponseType>sendSync(configuration,listInstanceProfilesType);
    if (Boolean.TRUE.equals(listInstanceProfilesResponseType.getListInstanceProfilesResult().getIsTruncated())) {
      instanceProfileMarker=listInstanceProfilesResponseType.getListInstanceProfilesResult().getMarker();
    }
 else {
      seenAllInstanceProfiles=true;
    }
    if (listInstanceProfilesResponseType.getListInstanceProfilesResult().getInstanceProfiles() != null && listInstanceProfilesResponseType.getListInstanceProfilesResult().getInstanceProfiles().getMember() != null) {
      for (      InstanceProfileType instanceProfileType : listInstanceProfilesResponseType.getListInstanceProfilesResult().getInstanceProfiles().getMember()) {
        if (instanceProfileType.getInstanceProfileName().equals(instanceProfileName)) {
          retVal=instanceProfileType;
          break;
        }
      }
    }
  }
  return retVal;
}