X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml2%2Fbinding%2Fimpl%2FSAML2ECPDecoder.cpp;h=53f2210d7c4650e492c08d89b93a003db770ed8b;hp=8b49b611170e72f2d172b39251a4f067e8799b5a;hb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;hpb=50f75e2cd3ddaca8e9808a3e5af9517deca3c9c3 diff --git a/saml/saml2/binding/impl/SAML2ECPDecoder.cpp b/saml/saml2/binding/impl/SAML2ECPDecoder.cpp index 8b49b61..53f2210 100644 --- a/saml/saml2/binding/impl/SAML2ECPDecoder.cpp +++ b/saml/saml2/binding/impl/SAML2ECPDecoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2009 Internet2 + * Copyright 2001-2010 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -134,7 +134,7 @@ XMLObject* SAML2ECPDecoder::decode( const vector& blocks = const_cast(env->getHeader())->getUnknownXMLObjects(); vector::const_iterator h = find_if(blocks.begin(), blocks.end(), hasQName(xmltooling::QName(samlconstants::SAML20ECP_NS, RelayState))); - const ElementProxy* ep = dynamic_cast(h != blocks.end() ? *h : NULL); + const ElementProxy* ep = dynamic_cast(h != blocks.end() ? *h : nullptr); if (ep) { auto_ptr_char rs(ep->getTextContent()); if (rs.get())