Check for array size in Mesh::GetBCNamePtr()

This commit is contained in:
Matthias Hochsteger 2015-12-18 11:02:03 +01:00
parent ca0fcb1e5e
commit 0e2fe66650

View File

@ -582,7 +582,7 @@ namespace netgen
const string & GetBCName ( int bcnr ) const;
string * GetBCNamePtr ( int bcnr )
{ return bcnames[bcnr]; }
{ return bcnr < bcnames.Size() ? bcnames[bcnr] : nullptr; }
///
void ClearFaceDescriptors()