Program: 59205
Project: 59205
Buggy source:
public void convertLead(ActionRequest request,ActionResponse response) throws AxelorException {
  Context context=request.getContext();
  Map<String,Object> leadContext=(Map<String,Object>)context.get("String_Node_Str");
  Lead lead=Lead.find(((Integer)leadContext.get("String_Node_Str")).longValue());
  Partner partner=null;
  Partner contactPartner=null;
  Opportunity opportunity=null;
  Event callEvent=null;
  Event meetingEvent=null;
  Event taskEvent=null;
  if ((Boolean)context.get("String_Node_Str")) {
    contactPartner=this.createPartner((Partner)context.get("String_Node_Str"));
  }
 else   if (context.get("String_Node_Str") != null) {
    contactPartner=Partner.find((Long)context.get("String_Node_Str"));
  }
  if ((Boolean)context.get("String_Node_Str")) {
    partner=this.createPartner((Partner)context.get("String_Node_Str"));
  }
 else   if (context.get("String_Node_Str") != null) {
    partner=Partner.find((Long)context.get("String_Node_Str"));
  }
  if ((Boolean)context.get("String_Node_Str")) {
    opportunity=this.createOpportunity((Opportunity)context.get("String_Node_Str"));
  }
  if ((Boolean)context.get("String_Node_Str")) {
    callEvent=this.createEvent((Event)context.get("String_Node_Str"),1);
  }
  if ((Boolean)context.get("String_Node_Str")) {
    meetingEvent=this.createEvent((Event)context.get("String_Node_Str"),2);
  }
  if ((Boolean)context.get("String_Node_Str")) {
    taskEvent=this.createEvent((Event)context.get("String_Node_Str"),3);
  }
  leadService.convertLead(lead,partner,contactPartner,opportunity,callEvent,meetingEvent,taskEvent);
}

Fixed version (ground truth):
public void convertLead(ActionRequest request,ActionResponse response) throws AxelorException {
  Context context=request.getContext();
  Map<String,Object> leadContext=(Map<String,Object>)context.get("String_Node_Str");
  Lead lead=Lead.find(((Integer)leadContext.get("String_Node_Str")).longValue());
  Partner partner=null;
  Partner contactPartner=null;
  Opportunity opportunity=null;
  Event callEvent=null;
  Event meetingEvent=null;
  Event taskEvent=null;
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    contactPartner=this.createPartner((Map<String,Object>)context.get("String_Node_Str"));
  }
 else   if (context.get("String_Node_Str") != null) {
    contactPartner=Partner.find((Long)context.get("String_Node_Str"));
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    partner=this.createPartner((Map<String,Object>)context.get("String_Node_Str"));
  }
 else   if (context.get("String_Node_Str") != null) {
    partner=Partner.find((Long)context.get("String_Node_Str"));
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    opportunity=this.createOpportunity((Map<String,Object>)context.get("String_Node_Str"));
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    callEvent=this.createEvent((Map<String,Object>)context.get("String_Node_Str"),1);
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    meetingEvent=this.createEvent((Map<String,Object>)context.get("String_Node_Str"),2);
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    taskEvent=this.createEvent((Map<String,Object>)context.get("String_Node_Str"),3);
  }
  leadService.convertLead(lead,partner,contactPartner,opportunity,callEvent,meetingEvent,taskEvent);
}