mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-30 19:30:35 +05:00
PAL13601 (application crashes during GetAlgoState() execution)
in GetAlgoState(), initialize CORBA::String_var algoName with an empty string
This commit is contained in:
parent
b4457771a2
commit
692570eb2b
@ -939,7 +939,7 @@ SMESH::algo_error_array* SMESH_Gen_i::GetAlgoState( SMESH::SMESH_Mesh_ptr theMes
|
|||||||
THROW_SALOME_CORBA_EXCEPTION( "bad error name",SALOME::BAD_PARAM );
|
THROW_SALOME_CORBA_EXCEPTION( "bad error name",SALOME::BAD_PARAM );
|
||||||
}
|
}
|
||||||
// algo name
|
// algo name
|
||||||
CORBA::String_var algoName;
|
CORBA::String_var algoName = "";
|
||||||
if ( error->_algo ) {
|
if ( error->_algo ) {
|
||||||
if ( !myCurrentStudy->_is_nil() ) {
|
if ( !myCurrentStudy->_is_nil() ) {
|
||||||
// find algo in the study
|
// find algo in the study
|
||||||
@ -969,7 +969,7 @@ SMESH::algo_error_array* SMESH_Gen_i::GetAlgoState( SMESH::SMESH_Mesh_ptr theMes
|
|||||||
}
|
}
|
||||||
if ( algoName.in() == 0 )
|
if ( algoName.in() == 0 )
|
||||||
// use algo type name
|
// use algo type name
|
||||||
algoName = CORBA::string_dup( error->_algo->GetName() );
|
algoName = error->_algo->GetName();
|
||||||
}
|
}
|
||||||
// fill AlgoStateError structure
|
// fill AlgoStateError structure
|
||||||
SMESH::AlgoStateError & errStruct = error_array[ i++ ];
|
SMESH::AlgoStateError & errStruct = error_array[ i++ ];
|
||||||
|
Loading…
Reference in New Issue
Block a user