]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/CollectionPlugin/CollectionPlugin_Validators.cpp
Salome HOME
Issue #2975: Do not select groups in all operations except operations on groups
[modules/shaper.git] / src / CollectionPlugin / CollectionPlugin_Validators.cpp
index 7ef185389a1e2cb071ed5c88c8f659c62e61f5b7..7620506cf3d0b57e97c7e45efb1bf55d3cf7af50 100644 (file)
@@ -51,7 +51,7 @@ static bool isGroupTypeCorrect(const AttributeSelectionPtr& theSelection,
 {
   // applicable the groups only
   ResultPtr aGroupResult = theSelection->context();
-  if (aGroupResult->groupName() != ModelAPI_ResultGroup::group()) {
+  if (!aGroupResult.get() || aGroupResult->groupName() != ModelAPI_ResultGroup::group()) {
     theError = "Error: Groups can be selected only.";
     return false;
   }