Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 982B0C2ED for ; Wed, 12 Mar 2014 16:44:51 +0000 (UTC) Received: (qmail 92985 invoked by uid 500); 12 Mar 2014 16:44:39 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 92893 invoked by uid 500); 12 Mar 2014 16:44:33 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 92767 invoked by uid 99); 12 Mar 2014 16:44:26 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2014 16:44:26 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 8316F94213C; Wed, 12 Mar 2014 16:44:26 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: coheigea@apache.org To: commits@cxf.apache.org Date: Wed, 12 Mar 2014 16:44:26 -0000 Message-Id: <91f81142b84544b39012d16508f57ec3@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: Clone the SecurityToken Element Repository: cxf Updated Branches: refs/heads/2.6.x-fixes e72c4cdc4 -> 8c8329f79 Clone the SecurityToken Element Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/7870cced Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/7870cced Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/7870cced Branch: refs/heads/2.6.x-fixes Commit: 7870cced694bbb41e613e38839cdf6c790e13494 Parents: e72c4cd Author: Colm O hEigeartaigh Authored: Wed Mar 12 16:19:34 2014 +0000 Committer: Colm O hEigeartaigh Committed: Wed Mar 12 16:34:50 2014 +0000 ---------------------------------------------------------------------- .../org/apache/cxf/ws/security/tokenstore/SecurityToken.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/7870cced/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java ---------------------------------------------------------------------- diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java index 31dafd9..0fa0390 100644 --- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java +++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java @@ -249,7 +249,9 @@ public class SecurityToken implements Serializable { * @param token The token to set. */ public void setToken(Element token) { - this.token = token; + if (token != null) { + this.token = cloneElement(token); + } } /**