From a6220a1ba4e19c9504873c54543eeca0da312b30 Mon Sep 17 00:00:00 2001 From: Andrew Fawcett Date: Sun, 12 May 2019 10:42:04 -0700 Subject: [PATCH] Temp fix for Summer'19 platform issue see issue 818 https://github.com/afawcett/declarative-lookup-rollup-summaries/issues/818# --- force-app/main/classes/RollupService.cls | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/force-app/main/classes/RollupService.cls b/force-app/main/classes/RollupService.cls index ac2e9bbb..0b789599 100644 --- a/force-app/main/classes/RollupService.cls +++ b/force-app/main/classes/RollupService.cls @@ -721,7 +721,10 @@ global with sharing class RollupService Set masterRecordIdsFromMerge = new Set(); if(sObjectDescribe.isMergeable()) { for(SObject existingRecord : existingRecords.values()) { - Id masterRecordId = (Id) existingRecord.get('MasterRecordId'); + Id masterRecordId = null; + try { + masterRecordId = (Id) existingRecord.get('MasterRecordId'); + } catch(Exception e) {} if(masterRecordId!=null) { masterRecordIdsFromMerge.add(masterRecordId); }