Project

General

Profile

Revision a1127475

IDa112747555506c339852661d78523b3113d2110a
Parent bd9c39e8
Child 83b68cf9

Added by Andreas Müller about 4 years ago

#5958 Fix NPE in findTaxaByName with missing clazz param

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonServiceImpl.java
464 464

  
465 465
    @Override
466 466
    public List<TaxonBase> listTaxaByName(Class<? extends TaxonBase> clazz, String uninomial,	String infragenericEpithet, String specificEpithet,	String infraspecificEpithet, String authorship, Rank rank, Integer pageSize,Integer pageNumber) {
467
        if (clazz == null){
468
            clazz = TaxonBase.class;
469
        }
467 470
        Integer numberOfResults = dao.countTaxaByName(clazz, uninomial, infragenericEpithet, specificEpithet, infraspecificEpithet, rank);
468 471

  
469 472
        List<TaxonBase> results = new ArrayList<TaxonBase>();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)