diff --git a/force-app/main/default/classes/SOQL.cls b/force-app/main/default/classes/SOQL.cls index 0044e1e..64bb6d3 100644 --- a/force-app/main/default/classes/SOQL.cls +++ b/force-app/main/default/classes/SOQL.cls @@ -582,7 +582,7 @@ public virtual inherited sharing class SOQL implements Queryable { Map cutomKeyToRecord = (Map) Type.forName('Map').newInstance(); for (SObject record : toList()) { - cutomKeyToRecord.put(record.get(keyField) + '', record); + cutomKeyToRecord.put(String.valueOf(record.get(keyField)), record); } return cutomKeyToRecord; @@ -594,7 +594,7 @@ public virtual inherited sharing class SOQL implements Queryable { Map> cutomKeyToRecords = (Map>) Type.forName('Map>').newInstance(); for (SObject record : toList()) { - String customKey = record.get(keyField) + ''; + String customKey = String.valueOf(record.get(keyField)); if (!cutomKeyToRecords.containsKey(customKey)) { cutomKeyToRecords.put(customKey, new List());