diff --git a/src/Message/Message_ProgressSentry.lxx b/src/Message/Message_ProgressSentry.lxx index 7484752ed5..b8e918ec43 100755 --- a/src/Message/Message_ProgressSentry.lxx +++ b/src/Message/Message_ProgressSentry.lxx @@ -64,5 +64,5 @@ inline Standard_Boolean Message_ProgressSentry::More () const inline void Message_ProgressSentry::Show () const { - if ( myProgress ) myProgress->Show(); + if ( ! myProgress.IsNull() ) myProgress->Show(); }