Project

General

Profile

Revision 8c2c6a09

ID8c2c6a09d214710459eb04a61d8c9c31cf08dcd0
Parent 4f290ba6
Child ae7b9470

Added by Andreas Müller about 3 years ago

ref #6065 fix NPE in pageSize

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonNodeServiceImpl.java
120 120

  
121 121

  
122 122
        List<TaxonNodeDto> dtos = new ArrayList<>(pageSize==null?25:pageSize);
123
        int start = PagerUtils.startFor(pageSize, pageIndex);
123
        Integer start = PagerUtils.startFor(pageSize, pageIndex);
124
        start = start == null? Integer.MAX_VALUE : start;
124 125
        int limit = PagerUtils.limitFor(pageSize);
125 126
        Long totalCount = Long.valueOf(allRecords.size());
126 127

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)