X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2Fhandler%2Fimpl%2FAssertionConsumerService.cpp;h=bef75272a4008f1a02038c3e1780d92db49af888;hb=fe986ee17958a794a73b0f993af40cb5db1edc30;hp=f68ff6d97ae4671e3db784331c83e983fcd598c4;hpb=0d03569dadcbce8910fff0ad1e48de93ed90461a;p=shibboleth%2Fsp.git diff --git a/shibsp/handler/impl/AssertionConsumerService.cpp b/shibsp/handler/impl/AssertionConsumerService.cpp index f68ff6d..bef7527 100644 --- a/shibsp/handler/impl/AssertionConsumerService.cpp +++ b/shibsp/handler/impl/AssertionConsumerService.cpp @@ -288,22 +288,22 @@ ResolutionContext* AssertionConsumerService::resolveAttributes( AttributeExtractor* extractor = application.getAttributeExtractor(); if (extractor) { Locker extlocker(extractor); - if (entity) { - pair prefix = application.getString("metadataAttributePrefix"); - if (prefix.first) { - m_log.debug("extracting metadata-derived attributes..."); - try { - extractor->extractAttributes(application, issuer, *entity, resolvedAttributes); - for (vector::iterator a = resolvedAttributes.begin(); a != resolvedAttributes.end(); ++a) { - vector& ids = (*a)->getAliases(); - for (vector::iterator id = ids.begin(); id != ids.end(); ++id) - *id = prefix.second + *id; - } - } - catch (exception& ex) { - m_log.error("caught exception extracting attributes: %s", ex.what()); - } - } + if (entity) { + pair prefix = application.getString("metadataAttributePrefix"); + if (prefix.first) { + m_log.debug("extracting metadata-derived attributes..."); + try { + extractor->extractAttributes(application, issuer, *entity, resolvedAttributes); + for (vector::iterator a = resolvedAttributes.begin(); a != resolvedAttributes.end(); ++a) { + vector& ids = (*a)->getAliases(); + for (vector::iterator id = ids.begin(); id != ids.end(); ++id) + *id = prefix.second + *id; + } + } + catch (exception& ex) { + m_log.error("caught exception extracting attributes: %s", ex.what()); + } + } } m_log.debug("extracting pushed attributes..."); if (v1nameid) {