qa: fix crash on null PNS::ITEM::Parent() UUID access

This commit is contained in:
Tomasz Włostowski 2023-05-31 16:40:52 +02:00 committed by Tomasz Wlostowski
parent 5100345c6e
commit 6e0a52dd47
1 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,10 @@ const PNS_LOG_FILE::COMMIT_STATE PNS_LOG_PLAYER::GetRouterUpdatedItems()
//printf("a %d r %d\n", added.size(), removed.size() );
for( auto item : removed )
{
state.m_removedIds.insert( item->Parent()->m_Uuid );
if( item->Parent() )
{
state.m_removedIds.insert( item->Parent()->m_Uuid );
}
}
for( auto item : added )