From: scantor Date: Wed, 20 Jun 2012 20:53:03 +0000 (+0000) Subject: Let handler run when no metadata is present. X-Git-Tag: 2.5.0~44 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=f8a5a879409c44214482f6af3a924b5ea3ee982f;hp=d4d136a73afc443b3dd333d06d539e9534bb6d10;p=shibboleth%2Fsp.git Let handler run when no metadata is present. git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3714 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/shibsp/handler/impl/StatusHandler.cpp b/shibsp/handler/impl/StatusHandler.cpp index a6a4c06..d579a3a 100644 --- a/shibsp/handler/impl/StatusHandler.cpp +++ b/shibsp/handler/impl/StatusHandler.cpp @@ -419,19 +419,20 @@ pair StatusHandler::processMessage( status = ""; } - MetadataProvider* m = application.getMetadataProvider(); + MetadataProvider* m = application.getMetadataProvider(false); Locker mlock(m); const PropertySet* relyingParty = nullptr; param=httpRequest.getParameter("entityID"); - if (param) + if (m && param) relyingParty = application.getRelyingParty(m->getEntityDescriptor(MetadataProviderCriteria(application, param)).first); else relyingParty = &application; s << ""; - m->outputStatus(s); + if (m) + m->outputStatus(s); s << ""; vector handlers;