Skip to content

Commit

Permalink
Fix null pointer check
Browse files Browse the repository at this point in the history
Refs #10649
  • Loading branch information
martyngigg committed Jun 16, 2015
1 parent 70dcde8 commit 9e43e95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ExtractWorkspace::ExtractWorkspace(const boost::python::api::object &pyvalue)
* Check whether the extract can pull out the workspace type
* @return True if it can be converted, false otherwise
*/
bool ExtractWorkspace::check() const { return !m_value; }
bool ExtractWorkspace::check() const { return m_value.get() != NULL; }

/**
* @return The extracted shared_ptr or throws std::invalid_argument
Expand Down

0 comments on commit 9e43e95

Please sign in to comment.