cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r472429 - /incubator/cxf/trunk/api/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java
Date Wed, 08 Nov 2006 09:05:32 GMT
Author: dandiep
Date: Wed Nov  8 01:05:31 2006
New Revision: 472429

URL: http://svn.apache.org/viewvc?view=rev&rev=472429
Log:
Fix fault throwing on interceptor chain from my last commit by
checking to make sure there is a fault chain state.

Modified:
    incubator/cxf/trunk/api/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java

Modified: incubator/cxf/trunk/api/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/api/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java?view=diff&rev=472429&r1=472428&r2=472429
==============================================================================
--- incubator/cxf/trunk/api/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java
(original)
+++ incubator/cxf/trunk/api/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java
Wed Nov  8 01:05:31 2006
@@ -151,7 +151,8 @@
                 }
             } catch (RuntimeException ex) {
                 if (!faultOccured) {
-                    if (subChainState.peek().equals(State.EXECUTING)) {
+                    if (subChainState.size() > 0 
+                        && subChainState.peek().equals(State.EXECUTING)) {
                         throw ex;
                     }
  



Mime
View raw message