Commit 12158169 authored by T.J. Corona's avatar T.J. Corona Committed by Kitware Robot

Merge topic 'fix-crash'

0ba63321 vtkSMTKModelRepresentation: check for association before using it
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: David Thompson's avatarDavid Thompson <david.thompson@kitware.com>
Merge-request: !1336
parents 5e70b6c4 0ba63321
Pipeline #123117 failed with stage
in 0 seconds
......@@ -447,9 +447,13 @@ bool vtkSMTKModelRepresentation::ApplyDefaultStyle(
attr = item.first->as<smtk::attribute::Attribute>();
if (attr)
{
for (auto obj : *attr->associations())
if (attr->associations())
{
atLeastOneSelected |= self->SelectComponentFootprint(obj, /*selnBit TODO*/ 1, renderables);
for (auto obj : *attr->associations())
{
atLeastOneSelected |=
self->SelectComponentFootprint(obj, /*selnBit TODO*/ 1, renderables);
}
}
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment