Project

General

Profile

Revision f742ce44

IDf742ce447b24589cf97da831153f5a9b615c507d
Parent 38b82688
Child 87e6bb6f

Added by Andreas Müller over 3 years ago

ref #6066 fix Index out of bound exception

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonNodeServiceImpl.java
137 137
        if(PagerUtils.hasResultsInRange(totalCount, pageIndex, pageSize)) {
138 138
            TaxonNameBase<?,?> parentName = null;
139 139

  
140
            for(int i = start; i < start + limit; i++) {
140
            for(int i = start; i < Math.min(totalCount, start + limit); i++) {
141 141
                CdmBase record = allRecords.get(i);
142 142

  
143 143
                if (record.isInstanceOf(TaxonNode.class)){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)