coverity finding: get latest openddlparser to get fix against possible nullptr access.

pull/749/head
Kim Kulling 2016-01-08 16:55:31 +01:00
parent 114d76765e
commit 3d2140afee
1 changed files with 2 additions and 2 deletions

View File

@ -299,13 +299,13 @@ char *OpenDDLParser::parseHeader( char *in, char *end ) {
}
// set the properties
if( ddl_nullptr != first ) {
if( ddl_nullptr != first && ddl_nullptr != node ) {
node->setProperties( first );
}
Name *name( ddl_nullptr );
in = OpenDDLParser::parseName( in, end, &name );
if( ddl_nullptr != name ) {
if( ddl_nullptr != name && ddl_nullptr != node ) {
const std::string nodeName( name->m_id->m_text.m_buffer );
node->setName( nodeName );
}