click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r928353 - /click/trunk/click/examples/src/org/apache/click/examples/service/CustomerService.java
Date Sun, 28 Mar 2010 07:32:46 GMT
Author: sabob
Date: Sun Mar 28 07:32:46 2010
New Revision: 928353

URL: http://svn.apache.org/viewvc?rev=928353&view=rev
Log:
guard against blank sort column

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/service/CustomerService.java

Modified: click/trunk/click/examples/src/org/apache/click/examples/service/CustomerService.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/service/CustomerService.java?rev=928353&r1=928352&r2=928353&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/service/CustomerService.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/service/CustomerService.java
Sun Mar 28 07:32:46 2010
@@ -213,7 +213,7 @@ public class CustomerService extends Cay
         String sortColumn, boolean ascending) {
 
         SelectQuery query = new SelectQuery(Customer.class);
-        if (sortColumn != null) {
+        if (StringUtils.isNotBlank(sortColumn)) {
             query.addOrdering(sortColumn, ascending);
         }
         query.setFetchOffset(offset);



Mime
View raw message