You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/02/17 17:56:37 UTC

svn commit: r378569 - /lenya/trunk/src/java/org/apache/lenya/workflow/impl/WorkflowManagerImpl.java

Author: andreas
Date: Fri Feb 17 08:56:33 2006
New Revision: 378569

URL: http://svn.apache.org/viewcvs?rev=378569&view=rev
Log:
WorkflowManagerImpl throws exception when schema could not be read

Modified:
    lenya/trunk/src/java/org/apache/lenya/workflow/impl/WorkflowManagerImpl.java

Modified: lenya/trunk/src/java/org/apache/lenya/workflow/impl/WorkflowManagerImpl.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/workflow/impl/WorkflowManagerImpl.java?rev=378569&r1=378568&r2=378569&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/workflow/impl/WorkflowManagerImpl.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/workflow/impl/WorkflowManagerImpl.java Fri Feb 17 08:56:33 2006
@@ -108,6 +108,10 @@
                 workflow = (WorkflowImpl) this.uri2workflow.get(uri);
                 if (workflow == null) {
                     Document document = SourceUtil.readDOM(uri, this.manager);
+                    if (document == null) {
+                        throw new WorkflowException("Could not read workflow schema from URI ["
+                                + uri + "]!");
+                    }
                     WorkflowBuilder builder = new WorkflowBuilder(getLogger());
                     workflow = builder.buildWorkflow(uri, document);
                     this.uri2workflow.put(uri, workflow);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org