File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -365,8 +365,9 @@ public abstract with sharing class fflib_SObjectSelector
365365 {
366366 // select the Selector fields and Fieldsets and set order
367367 queryFactory .selectFields (new Set <SObjectField >(getSObjectFieldList ()));
368- if (m_includeFieldSetFields )
369- for (Schema .FieldSet fieldSet : getSObjectFieldSetList ())
368+ List <Schema .FieldSet > fieldSetList = getSObjectFieldSetList ();
369+ if (m_includeFieldSetFields && fieldSetList != null )
370+ for (Schema .FieldSet fieldSet : fieldSetList )
370371 queryFactory .selectFieldSet (fieldSet );
371372
372373 // Automatically select the CurrencyIsoCode for MC orgs (unless the object is a known exception to the rule)
@@ -394,4 +395,4 @@ public abstract with sharing class fflib_SObjectSelector
394395
395396 return queryFactory ;
396397 }
397- }
398+ }
You can’t perform that action at this time.
0 commit comments