Program: 59201
Project: 59201
Buggy source:
public void convertLead(ActionRequest request,ActionResponse response) throws AxelorException {
  Context context=request.getContext();
  Lead leadContext=(Lead)context.get("String_Node_Str");
  Lead lead=Lead.find(leadContext.getId());
  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 ((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);
}