synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject svn commit: r603861 - /webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CacheMediatorFactory.java
Date Thu, 13 Dec 2007 09:13:15 GMT
Author: ruwan
Date: Thu Dec 13 01:13:15 2007
New Revision: 603861

URL: http://svn.apache.org/viewvc?rev=603861&view=rev
Log:
Fixing an issue in the CacheMediatorFactory

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CacheMediatorFactory.java

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CacheMediatorFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CacheMediatorFactory.java?rev=603861&r1=603860&r2=603861&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CacheMediatorFactory.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CacheMediatorFactory.java
Thu Dec 13 01:13:15 2007
@@ -128,7 +128,7 @@
                 OMAttribute sequenceAttr = onCacheHitElem.getAttribute(ATT_SEQUENCE);
                 if (sequenceAttr != null && sequenceAttr.getAttributeValue() != null)
{
                     cache.setOnCacheHitRef(sequenceAttr.getAttributeValue());
-                } else {
+                } else if (onCacheHitElem.getFirstElement() != null) {
                     cache.setOnCacheHitSequence(
                         new SequenceMediatorFactory().createAnonymousSequence(onCacheHitElem));
                 }



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message