Skip to content

Commit

Permalink
Add NULL component pointer check to ParameterMap::get
Browse files Browse the repository at this point in the history
Refs #8057
  • Loading branch information
martyngigg committed Oct 4, 2013
1 parent 4fddadd commit 74c23e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ namespace Mantid
Parameter_sptr ParameterMap::get(const IComponent* comp, const std::string& name,
const std::string & type) const
{
Parameter_sptr result = Parameter_sptr();
Parameter_sptr result;
if(!comp) return result;
PARALLEL_CRITICAL(ParameterMap_get)
{
if( !m_map.empty() )
Expand Down

0 comments on commit 74c23e1

Please sign in to comment.