Skip to content

Commit

Permalink
Refs #4472: extra check for null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Janik Zikovsky committed Apr 5, 2012
1 parent feed060 commit f97f0db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Mantid/Framework/MDEvents/src/BinMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ namespace MDEvents

// Copy the experiment infos to the output
IMDEventWorkspace_sptr inEWS = boost::dynamic_pointer_cast<IMDEventWorkspace>(m_inWS);
outWS->copyExperimentInfos( *inEWS );
if (inEWS)
outWS->copyExperimentInfos( *inEWS );

// Save the output
setProperty("OutputWorkspace", boost::dynamic_pointer_cast<Workspace>(outWS));
Expand Down

0 comments on commit f97f0db

Please sign in to comment.