Skip to content

Commit

Permalink
Fix null pointer deref in "agent list"
Browse files Browse the repository at this point in the history
refs #7248
  • Loading branch information
gunnarbeutner committed Oct 24, 2014
1 parent 33b2395 commit 10150c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cli/agentutility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ void AgentUtility::PrintAgents(std::ostream& fp)

void AgentUtility::PrintAgentRepository(std::ostream& fp, const Dictionary::Ptr& repository)
{
if (!repository)
return;

ObjectLock olock(repository);
BOOST_FOREACH(const Dictionary::Pair& kv, repository) {
fp << std::setw(4) << " "
Expand Down

0 comments on commit 10150c3

Please sign in to comment.