Project

General

Profile

Revision 9a130d1f

ID9a130d1f99c5e7069c1d42bfba2c43f04ed1d6e2
Parent 78f204f3
Child fe7208bf

Added by Katja Luther over 4 years ago

fix problem for taxonSearch with no result

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxon/TaxonDaoHibernateImpl.java
20 20
import java.util.TreeSet;
21 21
import java.util.UUID;
22 22

  
23
import org.apache.commons.lang.StringUtils;
23 24
import org.apache.log4j.Logger;
24 25
import org.hibernate.Criteria;
25 26
import org.hibernate.FetchMode;
......
435 436
                    hql +=  " from %s t " +
436 437
                            " where t.id in (:taxa) ";
437 438

  
438
                } else{
439
                } else if (StringUtils.isBlank(queryString)){
439 440
                    hql = "select " + selectWhat + " from %s t";
441
                } else{
442
                    return null;
440 443
                }
441 444

  
442 445
            String classString;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)