mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0027724: Visualization, TKV3d - Null handle check missing in AIS_InteractiveContext::SelectedShape()
Null handle check has been added.
This commit is contained in:
parent
82cf4904ea
commit
3475df12a6
@ -1239,7 +1239,7 @@ TopoDS_Shape AIS_InteractiveContext::SelectedShape() const
|
||||
|
||||
const Handle(StdSelect_BRepOwner) anOwner =
|
||||
Handle(StdSelect_BRepOwner)::DownCast (mySelection->Value());
|
||||
if (!anOwner->HasSelectable())
|
||||
if (anOwner.IsNull() || !anOwner->HasSelectable())
|
||||
return TopoDS_Shape();
|
||||
|
||||
return anOwner->Shape().Located (anOwner->Location() * anOwner->Shape().Location());
|
||||
|
Loading…
x
Reference in New Issue
Block a user