AttributeSelectionPtr anAttribute = theAttrSelList->value(anIndex);
aShape = anAttribute->value();
if(!aShape.get()) {
- aShape = anAttribute->context()->shape();
+ ResultPtr aContext = anAttribute->context();
+ if (aContext.get())
+ aShape = aContext->shape();
}
if(!aShape.get()) {