Skip to content

Commit

Permalink
Merge pull request #585 from DouglasCAyers/fix-issue-558-error-when-a…
Browse files Browse the repository at this point in the history
…dding-note

Fixes issue #558 by avoiding running query that won't have any masterRecordIds to filter by
  • Loading branch information
afawcett authored Nov 25, 2017
2 parents df55c57 + f453f23 commit 7f97d16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rolluptool/src/classes/LREngine.cls
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,9 @@ public class LREngine {
**/
public abstract class QueryExecutor {
public virtual List<SObject> query(String query, Set<Id> masterIds) {
if ( masterIds == null || masterIds.isEmpty() ) {
return new List<SObject>();
}
return Database.query(query);
}
}
Expand All @@ -678,4 +681,4 @@ public class LREngine {
}
}

}
}

0 comments on commit 7f97d16

Please sign in to comment.