Salome HOME
Join modifications from branch BR_3_1_0deb
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_CreateHypothesesDlg.cxx
index 68d2f10c8844c1230c7f31d15ee8c5e6d80de649..32e4860ac03cfefe6db9d5d519fb4abaa446c4e8 100644 (file)
@@ -205,8 +205,13 @@ void SMESHGUI_CreateHypothesesDlg::ClickOnApply()
     SMESHGUI_GenericHypothesisCreator* aCreator =
       SMESH::GetHypothesisCreator(sHypType);
 
-    // Create hypothesis/algorithm
-    aCreator->CreateHypothesis(myIsAlgo, this);
+    if( aCreator )
+      // Create hypothesis/algorithm
+      aCreator->create( myIsAlgo, this );
+    else
+    {
+      // report about error
+    }
   }
 
 //  buttonApply->setEnabled(FALSE);