[jboss-cvs] jboss-seam/src/main/org/jboss/seam/framework ...
Norman Richards
norman.richards at jboss.com
Mon Oct 15 15:43:45 EDT 2007
User: nrichards
Date: 07/10/15 15:43:45
Modified: src/main/org/jboss/seam/framework Query.java
Log:
null check, just to be safe
Revision Changes Path
1.38 +2 -2 jboss-seam/src/main/org/jboss/seam/framework/Query.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Query.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/framework/Query.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -b -r1.37 -r1.38
--- Query.java 15 Oct 2007 19:32:43 -0000 1.37
+++ Query.java 15 Oct 2007 19:43:45 -0000 1.38
@@ -363,7 +363,7 @@
public void setOrder(String order)
{
- if (!ORDER_CLAUSE_PATTERN.matcher(order).find()) {
+ if (order!= null && !ORDER_CLAUSE_PATTERN.matcher(order).find()) {
throw new IllegalArgumentException("invalid order clause");
}
this.order = order;
More information about the jboss-cvs-commits
mailing list