cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r705990 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/gen/DataMapUtils.java
Date Sun, 19 Oct 2008 11:57:10 GMT
Author: aadamchik
Date: Sun Oct 19 04:57:09 2008
New Revision: 705990

URL: http://svn.apache.org/viewvc?rev=705990&view=rev
Log:
CAY-1070 Generating Query and Procedure Access Code

Fixing NPE on queries without qualifiers

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/gen/DataMapUtils.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/gen/DataMapUtils.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/gen/DataMapUtils.java?rev=705990&r1=705989&r2=705990&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/gen/DataMapUtils.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/gen/DataMapUtils.java
Sun Oct 19 04:57:09 2008
@@ -71,6 +71,11 @@
      * @return Parameter names.
      */
     public Collection getParameterNames(QualifiedQuery query) {
+        
+        if(query.getQualifier() == null) {
+            return Collections.EMPTY_SET;
+        }
+        
         Map<String, String> queryParameters = queriesMap.get(query.getName());
 
         if ( queryParameters == null) {



Mime
View raw message