Skip to content

Commit

Permalink
Fix cppcheck error. Refs #9223.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Apr 23, 2014
1 parent 1a642ed commit 7973a51
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp
Expand Up @@ -871,8 +871,11 @@ namespace Mantid
" (Based on investigation ID: " + investigationID + ")");
}
ns1__dataset * dataset = dynamic_cast<ns1__dataset*>(response.return_.at(0));
if (dataset && dataset->id) datasetID = *(dataset->id);
g_log.debug() << "The name of the dataset related to " << investigationID << " is: " << *(dataset->name) << "\n";
if (dataset && dataset->id)
{
datasetID = *(dataset->id);
g_log.debug() << "The name of the dataset related to " << investigationID << " is: " << *(dataset->name) << "\n";
}
}
else
{
Expand Down

0 comments on commit 7973a51

Please sign in to comment.