ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1610702 - /webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/util/WSSecurityUtil.java
Date Tue, 15 Jul 2014 14:09:08 GMT
Author: coheigea
Date: Tue Jul 15 14:09:08 2014
New Revision: 1610702

URL: http://svn.apache.org/r1610702
Log:
[WSS-505] - WSSecurityUtil .storeElementInContext throws ArrayIndexOutOfBoundsException

Modified:
    webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/util/WSSecurityUtil.java

Modified: webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/util/WSSecurityUtil.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/util/WSSecurityUtil.java?rev=1610702&r1=1610701&r2=1610702&view=diff
==============================================================================
--- webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/util/WSSecurityUtil.java
(original)
+++ webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/util/WSSecurityUtil.java
Tue Jul 15 14:09:08 2014
@@ -1298,7 +1298,7 @@ public final class WSSecurityUtil {
         Element element
     ) {
         String id = uri;
-        if (uri.charAt(0) == '#') {
+        if (!"".equals(uri) && uri.charAt(0) == '#') {
             id = id.substring(1);
         }
         



Mime
View raw message