From d6320495e79ecc2839990d41651bb33582e26af8 Mon Sep 17 00:00:00 2001 From: gka Date: Tue, 6 Mar 2012 14:38:49 +0400 Subject: [PATCH] 0022993: Crash during reading STEP file --- src/STEPControl/STEPControl_ActorRead.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/STEPControl/STEPControl_ActorRead.cxx b/src/STEPControl/STEPControl_ActorRead.cxx index 50b92ca29c..ccca047fdc 100755 --- a/src/STEPControl/STEPControl_ActorRead.cxx +++ b/src/STEPControl/STEPControl_ActorRead.cxx @@ -271,6 +271,8 @@ Handle(Transfer_Binder) STEPControl_ActorRead::Transfer DeclareAndCast( HeaderSection_FileName, aFileNameEntity, anEntIt.Value() ); if ( !aFileNameEntity.IsNull() ) { Handle(TCollection_HAsciiString) aPPVersion = aFileNameEntity->PreprocessorVersion(); + if(aPPVersion.IsNull()) + continue; #ifdef DEB cout << "Preprocessor version detected: " << aPPVersion->ToCString() << endl; #endif