Program: 35403
Project: 35403
Buggy source:
/** 
 * Retrieves the given   {@code parentProject} corresponding planned budget value.
 * @param parentProject The parent project.
 * @throws UnsupportedOperationException If the project model has 0 or more than 1 budget ratio element or if the planned budget element of the budget ratio element is <code>null</code>.
 */
private void findPlannedBudget(final ProjectDTO parentProject) throws UnsupportedOperationException {
  plannedBudget=null;
  final List<ProjectModelDTO.LocalizedElement<BudgetRatioElementDTO>> budgetRatioElements=parentProject.getProjectModel().getLocalizedElements(BudgetRatioElementDTO.class);
  if (budgetRatioElements.size() != 1) {
    throw new UnsupportedOperationException(budgetRatioElements.size() + "String_Node_Str");
  }
  final BudgetRatioElementDTO budgetRatioElement=budgetRatioElements.get(0).getElement();
  final FlexibleElementDTO plannedBudgetField=budgetRatioElement.getPlannedBudget();
  if (plannedBudgetField == null) {
    throw new UnsupportedOperationException("String_Node_Str" + budgetRatioElement.getId() + "String_Node_Str");
  }
  dispatch.execute(new GetValue(parentProject.getId(),plannedBudgetField.getId(),plannedBudgetField.getEntityName()),new CommandResultHandler<ValueResult>(){
    @Override public void onCommandSuccess(    final ValueResult result){
      if (result != null && result.isValueDefined()) {
        plannedBudget=Double.valueOf(result.getValueObject());
      }
      if (linkedProject != null) {
        view.getAmountField().setValue(linkedProject.getPercentage());
        updatePercentageField();
      }
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Retrieves the given   {@code parentProject} corresponding planned budget value.
 * @param parentProject The parent project.
 * @throws UnsupportedOperationException If the project model has 0 or more than 1 budget ratio element or if the planned budget element of the budget ratio element is <code>null</code>.
 */
private void findPlannedBudget(final ProjectDTO parentProject) throws UnsupportedOperationException {
  plannedBudget=null;
  final List<ProjectModelDTO.LocalizedElement<BudgetRatioElementDTO>> budgetRatioElements=parentProject.getProjectModel().getLocalizedElements(BudgetRatioElementDTO.class);
  if (budgetRatioElements == null) {
    throw new UnsupportedOperationException("String_Node_Str");
  }
  if (budgetRatioElements.size() != 1) {
    throw new UnsupportedOperationException(budgetRatioElements.size() + "String_Node_Str");
  }
  final BudgetRatioElementDTO budgetRatioElement=budgetRatioElements.get(0).getElement();
  final FlexibleElementDTO plannedBudgetField=budgetRatioElement.getPlannedBudget();
  if (plannedBudgetField == null) {
    throw new UnsupportedOperationException("String_Node_Str" + budgetRatioElement.getId() + "String_Node_Str");
  }
  dispatch.execute(new GetValue(parentProject.getId(),plannedBudgetField.getId(),plannedBudgetField.getEntityName()),new CommandResultHandler<ValueResult>(){
    @Override public void onCommandSuccess(    final ValueResult result){
      if (result != null && result.isValueDefined()) {
        plannedBudget=Double.valueOf(result.getValueObject());
      }
      if (linkedProject != null) {
        view.getAmountField().setValue(linkedProject.getPercentage());
        updatePercentageField();
      }
    }
  }
);
}