Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 83619 invoked from network); 5 Nov 2009 23:14:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Nov 2009 23:14:03 -0000 Received: (qmail 71011 invoked by uid 500); 5 Nov 2009 23:14:03 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 70941 invoked by uid 500); 5 Nov 2009 23:14:03 -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 70932 invoked by uid 99); 5 Nov 2009 23:14:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 23:14:03 +0000 X-ASF-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 23:14:01 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 23E902388A19; Thu, 5 Nov 2009 23:13:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r833231 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java Date: Thu, 05 Nov 2009 23:13:41 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091105231341.23E902388A19@eris.apache.org> Author: dkulp Date: Thu Nov 5 23:13:40 2009 New Revision: 833231 URL: http://svn.apache.org/viewvc?rev=833231&view=rev Log: [CXF-2524] Allow null lifetime element Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java?rev=833231&r1=833230&r2=833231&view=diff ============================================================================== --- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java (original) +++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java Thu Nov 5 23:13:40 2009 @@ -157,7 +157,9 @@ Element lifetimeElem) { this.id = id; this.token = cloneElement(tokenElem); - this.processLifeTime(lifetimeElem); + if (lifetimeElem !=null) { + processLifeTime(lifetimeElem); + } } private static Element cloneElement(Element el) { try {