Merge pull request #408 from fxthomas/lucene-crash-in-logs

API: Fix crash when retrieving 0 documents
master
Tom Powell 8 years ago committed by GitHub
commit 0b1c0eeb0a
  1. 2
      libresonic-main/src/main/java/org/libresonic/player/service/SearchService.java

@ -159,6 +159,8 @@ public class SearchService {
int count = criteria.getCount();
result.setOffset(offset);
if (count <= 0) return result;
IndexReader reader = null;
try {
reader = createIndexReader(indexType);

Loading…
Cancel
Save