Skip to content

Commit

Permalink
Fixed the bug with SmoothNeighbours happening when there are no suita…
Browse files Browse the repository at this point in the history
…ble workspaces.

Refs #7720
  • Loading branch information
arturbekasov committed Aug 12, 2013
1 parent 9b2e6e8 commit fc18aba
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ void SmoothNeighboursDialog::inputWorkspaceChanged(const QString& pName)
// Workspace groups are NOT returned by IWP->getWorkspace(), as they are not MatrixWorkspace,
// so check the ADS for the GroupWorkspace with the same name
std::string inWsValue = this->getAlgorithm()->getPointerToProperty(inWsName)->value();

// If it really doesn't exist, don't do anything
if(!AnalysisDataService::Instance().doesExist(inWsValue))
return;

WorkspaceGroup_sptr inGroupWs = AnalysisDataService::Instance().retrieveWS<WorkspaceGroup>(inWsValue);

if(inGroupWs)
Expand Down

0 comments on commit fc18aba

Please sign in to comment.