Project

General

Profile

Revision 29a5f57c

ID29a5f57c26cb4bf5c87a05ccc09fbf354a7d355f
Parent 63f513d9
Child a180fd4f

Added by Andreas Müller almost 3 years ago

#5957 Fix for facultative rank range

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/ClassificationServiceImpl.java
637 637
        }
638 638

  
639 639
        //get rank sortindex for all parent taxa with sortindex <= minRank and sortIndex >= maxRank (if available)
640
        int minRankOrderIndex = minRank.getOrderIndex();
641
        int maxRankOrderIndex = maxRank.getOrderIndex();
640
        Integer minRankOrderIndex = minRank == null ? null : minRank.getOrderIndex();
641
        Integer maxRankOrderIndex = maxRank == null ? null : maxRank.getOrderIndex();
642 642
        Map<String, Integer> treeIndexSortIndexMapTmp = taxonNodeDao.rankOrderIndexForTreeIndex(treeIndexClosure, minRankOrderIndex, maxRankOrderIndex);
643 643

  
644 644
        //remove all treeindex with "exists child in above map(and child.sortindex > xxx)

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)