Project

General

Profile

Revision 3b841bb7

ID3b841bb7ccfff97d636dbeecbfab642271b46510
Parent b1a08bb1
Child d9ea157d

Added by Andreas Müller about 4 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)