Program: 80005
Project: 80005
Buggy source:
@Override public void onItemClick(BottomSheet sheet,MenuItem menu,Object extras){
  ODataRow row=OCursorUtils.toDatarow((Cursor)extras);
  mSheet.dismiss();
switch (menu.getItemId()) {
case R.id.menu_lead_convert_to_opportunity:
    if (inNetwork()) {
      CRMLead crmLead=(CRMLead)db();
      if (row.getInt("String_Node_Str") == 0) {
        OAlert.showWarning(getActivity(),"String_Node_Str");
      }
 else {
        int count=crmLead.count("String_Node_Str" + OColumn.ROW_ID + "String_Node_Str",new String[]{"String_Node_Str",row.getInt("String_Node_Str") + "String_Node_Str",row.getString(OColumn.ROW_ID)});
        if (count > 0) {
          convertRequestRecord=row;
          Intent intent=new Intent(getActivity(),ConvertToOpportunityWizard.class);
          intent.putExtras(row.getPrimaryBundleData());
          startActivityForResult(intent,REQUEST_CONVERT_WIZARD);
        }
 else {
          crmLead.convertToOpportunity(row,new ArrayList<Integer>(),convertDoneListener);
        }
      }
    }
 else {
      Toast.makeText(getActivity(),R.string.toast_network_required,Toast.LENGTH_LONG).show();
    }
  break;
case R.id.menu_lead_convert_to_quotation:
break;
case R.id.menu_lead_call_customer:
break;
case R.id.menu_lead_customer_location:
break;
case R.id.menu_lead_reschedule:
break;
case R.id.menu_lead_won:
break;
case R.id.menu_lead_lost:
break;
}
}

Fixed version (ground truth):
@Override public void onItemClick(BottomSheet sheet,MenuItem menu,Object extras){
  ODataRow row=OCursorUtils.toDatarow((Cursor)extras);
  mSheet.dismiss();
  ResPartner partner=new ResPartner(getActivity(),null);
switch (menu.getItemId()) {
case R.id.menu_lead_convert_to_opportunity:
    if (inNetwork()) {
      CRMLead crmLead=(CRMLead)db();
      if (row.getInt("String_Node_Str") == 0) {
        OAlert.showWarning(getActivity(),"String_Node_Str");
      }
 else {
        int count=crmLead.count("String_Node_Str" + OColumn.ROW_ID + "String_Node_Str",new String[]{"String_Node_Str",row.getInt("String_Node_Str") + "String_Node_Str",row.getString(OColumn.ROW_ID)});
        if (count > 0) {
          convertRequestRecord=row;
          Intent intent=new Intent(getActivity(),ConvertToOpportunityWizard.class);
          intent.putExtras(row.getPrimaryBundleData());
          startActivityForResult(intent,REQUEST_CONVERT_WIZARD);
        }
 else {
          crmLead.convertToOpportunity(row,new ArrayList<Integer>(),convertDoneListener);
        }
      }
    }
 else {
      Toast.makeText(getActivity(),R.string.toast_network_required,Toast.LENGTH_LONG).show();
    }
  break;
case R.id.menu_lead_convert_to_quotation:
break;
case R.id.menu_lead_call_customer:
if (!row.getString("String_Node_Str").equals("String_Node_Str")) {
String contact=partner.getContact(getActivity(),row.getInt(OColumn.ROW_ID));
if (!contact.equals("String_Node_Str")) {
  IntentUtils.requestCall(getActivity(),contact);
}
 else {
  Toast.makeText(getActivity(),"String_Node_Str",Toast.LENGTH_LONG).show();
}
}
 else {
Toast.makeText(getActivity(),"String_Node_Str",Toast.LENGTH_LONG).show();
}
break;
case R.id.menu_lead_customer_location:
if (!row.getString("String_Node_Str").equals("String_Node_Str")) {
String address=partner.getAddress(partner.browse(row.getInt("String_Node_Str")));
if (!address.equals("String_Node_Str") && !TextUtils.isEmpty(address)) {
IntentUtils.redirectToMap(getActivity(),address);
}
 else {
Toast.makeText(getActivity(),"String_Node_Str",Toast.LENGTH_LONG).show();
}
}
 else {
Toast.makeText(getActivity(),"String_Node_Str",Toast.LENGTH_LONG).show();
}
break;
case R.id.menu_lead_reschedule:
IntentUtils.startActivity(getActivity(),CRMDetail.class,row.getPrimaryBundleData());
break;
case R.id.menu_lead_won:
break;
case R.id.menu_lead_lost:
break;
}
}