Protect RC_TREE_MODEL::GetValue() against null pointer

This commit is contained in:
jean-pierre charras 2022-08-18 10:14:02 +02:00
parent 797827b833
commit afacec3acb
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ void RC_TREE_MODEL::GetValue( wxVariant& aVariant,
break;
case RC_TREE_NODE::MAIN_ITEM:
if( rcItem->GetParent()->GetMarkerType() == MARKER_BASE::MARKER_DRAWING_SHEET )
if( rcItem->GetParent() && rcItem->GetParent()->GetMarkerType() == MARKER_BASE::MARKER_DRAWING_SHEET )
{
aVariant = _( "Drawing Sheet" );
break;