Project

General

Profile

Revision b4f7840c

IDb4f7840c1815faacda3afdfc627319e5a5897d4b
Parent a1b73fc5
Child b9e54ec8

Added by Andreas Müller about 4 years ago

#5958 Fix NPE in findTaxaByName with missing clazz param (II)

View differences:

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

  
453 453
    @Override
454 454
    public Pager<TaxonBase> findTaxaByName(Class<? extends TaxonBase> clazz, String uninomial,	String infragenericEpithet, String specificEpithet,	String infraspecificEpithet, String authorship, Rank rank, Integer pageSize,Integer pageNumber) {
455
        if (clazz == null){
456
            clazz = TaxonBase.class;
457
        }
455 458
        Integer numberOfResults = dao.countTaxaByName(clazz, uninomial, infragenericEpithet, specificEpithet, infraspecificEpithet, rank);
456 459

  
457 460
        List<TaxonBase> results = new ArrayList<TaxonBase>();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)