cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r919031 - /cayenne/main/trunk/framework/cayenne-project-unpublished/src/main/java/org/apache/cayenne/project2/validation/DefaultProjectValidator.java
Date Thu, 04 Mar 2010 15:48:38 GMT
Author: oltka
Date: Thu Mar  4 15:48:37 2010
New Revision: 919031

URL: http://svn.apache.org/viewvc?rev=919031&view=rev
Log:
CAY-1339 Remove org.apache.cayenne.project package from runtime

* fix modeler save problems

Modified:
    cayenne/main/trunk/framework/cayenne-project-unpublished/src/main/java/org/apache/cayenne/project2/validation/DefaultProjectValidator.java

Modified: cayenne/main/trunk/framework/cayenne-project-unpublished/src/main/java/org/apache/cayenne/project2/validation/DefaultProjectValidator.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-project-unpublished/src/main/java/org/apache/cayenne/project2/validation/DefaultProjectValidator.java?rev=919031&r1=919030&r2=919031&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-project-unpublished/src/main/java/org/apache/cayenne/project2/validation/DefaultProjectValidator.java
(original)
+++ cayenne/main/trunk/framework/cayenne-project-unpublished/src/main/java/org/apache/cayenne/project2/validation/DefaultProjectValidator.java
Thu Mar  4 15:48:37 2010
@@ -303,7 +303,10 @@
     public ValidationResult visitProcedure(Procedure procedure) {
         defaultProjectValidator.getProcedureValidator().validate(procedure, this);
         ProcedureParameter parameter = procedure.getResultParam();
-        visitProcedureParameter(parameter);
+        if (parameter != null) {
+            visitProcedureParameter(parameter);
+        }
+
         Iterator<ProcedureParameter> itPrOut = procedure
                 .getCallOutParameters()
                 .iterator();
@@ -317,6 +320,7 @@
             ProcedureParameter procPar = itPr.next();
             visitProcedureParameter(procPar);
         }
+
         return validationResults;
     }
 



Mime
View raw message