Skip to content

Commit

Permalink
Changes requested by Raman, in code review for PR 3806.
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed May 12, 2017
1 parent 1e32ab0 commit 8800ad7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public List<OAIRecord> findOaiRecordsNotInThisSet(String setName, Date from, Dat

public List<OAIRecord> findOaiRecordsBySetName(String setName, Date from, Date until, boolean excludeSet) {

String queryString ="SELECT object(h) from OAIRecord as h where h.id is not null";
String queryString ="SELECT object(h) from OAIRecord h where h.id is not null";
if (setName != null) {
if (excludeSet) {
queryString += " and h.setName is not null and h.setName != '' and h.setName != :setName";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private void addExtraSets(Object xoaiItemsList, String setSpec, Date from, Date

List<OAIRecord> oaiRecords = recordService.findOaiRecordsNotInThisSet(setSpec, from, until);

if (oaiRecords == null && oaiRecords.isEmpty()) {
if (oaiRecords == null || oaiRecords.isEmpty()) {
return;
}

Expand Down

0 comments on commit 8800ad7

Please sign in to comment.