File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
nebula-logger/core/main/logger-engine/classes Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -462,8 +462,12 @@ global with sharing class LogEntryEventBuilder {
462462 } else {
463463 try {
464464 this .logEntryEvent .RecordId__c = record .Id ;
465- } catch (System .SObjectException ex ) {
466- // Certain SObjectTypes (such as Platform Events) do not have the ID field; that's OK, just skip setting it
465+ } catch (System .SObjectException sobjectException ) {
466+ // Some SObject Types (such as Platform Events) do not have the ID field.
467+ // That's OK, just skip setting it.
468+ if (sobjectException .getMessage ().contains (' Invalid field Id' ) == false ) {
469+ throw sobjectException ;
470+ }
467471 }
468472 this .logEntryEvent .RecordSObjectClassification__c = getSObjectClassification (record .getSObjectType ());
469473 this .logEntryEvent .RecordSObjectType__c = record .getSObjectType ().toString ();
You can’t perform that action at this time.
0 commit comments