Ignore:
Timestamp:
03/13/13 10:55:16 (11 years ago)
Author:
oschonef
Message:
  • fix "first record out of range" generated for empty result sets
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SRUServer/trunk/src/main/java/eu/clarin/sru/server/SRUServer.java

    r2644 r2688  
    353353        // check, of startRecord position is greater than total record set
    354354        if ((result.getTotalRecordCount() >= 0) &&
    355             (request.getStartRecord() > 0) &&
    356             (request.getStartRecord() > result.getTotalRecordCount())) {
    357             throw new SRUException(SRUConstants.SRU_FIRST_RECORD_POSITION_OUT_OF_RANGE);
     355            (request.getRawStartRecord() > 0) &&
     356            (request.getRawStartRecord() > result.getTotalRecordCount())) {
     357            throw new SRUException(
     358                    SRUConstants.SRU_FIRST_RECORD_POSITION_OUT_OF_RANGE);
    358359        }
    359360
Note: See TracChangeset for help on using the changeset viewer.