mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030315: Data Exchange - Crash reading views during STEP import.
Add NULL check to protect against crash.
This commit is contained in:
@@ -4117,6 +4117,10 @@ Handle(TCollection_HAsciiString) buildClippingPlanes(const Handle(StepGeom_Geome
|
||||
if (theClippingCameraModel->IsKind(STANDARD_TYPE(StepVisual_CameraModelD3MultiClipping))) {
|
||||
Handle(StepVisual_CameraModelD3MultiClipping) aCameraModel =
|
||||
Handle(StepVisual_CameraModelD3MultiClipping)::DownCast(theClippingCameraModel);
|
||||
|
||||
if (aCameraModel->ShapeClipping().IsNull())
|
||||
return anExpression;
|
||||
|
||||
// Root of clipping planes tree
|
||||
if (aCameraModel->ShapeClipping()->Length() == 1) {
|
||||
Handle(StepVisual_CameraModelD3MultiClippingUnion) aCameraModelUnion =
|
||||
|
Reference in New Issue
Block a user