mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0026451: Crash importing STeP file
Add check for NULL.
This commit is contained in:
@@ -575,6 +575,8 @@ Standard_Boolean STEPConstruct_Styles::GetColors (const Handle(StepVisual_Styled
|
||||
Handle(StepVisual_SurfaceStyleFillArea) SSFA = SSES.SurfaceStyleFillArea();
|
||||
if ( !SSFA.IsNull() ) {
|
||||
Handle(StepVisual_FillAreaStyle) FAS = SSFA->FillArea();
|
||||
if (FAS.IsNull())
|
||||
continue;
|
||||
for ( Standard_Integer m=1; m <= FAS->NbFillStyles(); m++ ) {
|
||||
StepVisual_FillStyleSelect FSS = FAS->FillStylesValue ( m );
|
||||
Handle(StepVisual_FillAreaStyleColour) FASC = FSS.FillAreaStyleColour();
|
||||
|
Reference in New Issue
Block a user