From 6e0a52dd474d5183586e87eda74b07f231f1dbc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Wed, 31 May 2023 16:40:52 +0200 Subject: [PATCH] qa: fix crash on null PNS::ITEM::Parent() UUID access --- qa/tools/pns/pns_log_player.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qa/tools/pns/pns_log_player.cpp b/qa/tools/pns/pns_log_player.cpp index 4442849006..d3ded7b838 100644 --- a/qa/tools/pns/pns_log_player.cpp +++ b/qa/tools/pns/pns_log_player.cpp @@ -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 )