* modules/gui/wxwindows/playlist.cpp: sanity check to avoid crashes (doesn't explain why the check is triggered though).

This commit is contained in:
Gildas Bazin 2005-02-22 13:13:29 +00:00
parent 7f95e259d8
commit 210b6b3366
1 changed files with 4 additions and 6 deletions

View File

@ -497,13 +497,11 @@ void Playlist::UpdateTreeItem( playlist_t *p_playlist, wxTreeItemId item )
{
if( ! item.IsOk() ) return;
playlist_item_t *p_item =
((PlaylistItem *)treectrl->GetItemData( item ))->p_item;
wxTreeItemData *p_data = treectrl->GetItemData( item );
if( !p_data ) return;
if( !p_item )
{
return;
}
playlist_item_t *p_item = ((PlaylistItem *)p_data)->p_item;
if( !p_item ) return;
wxString msg;
wxString duration = wxU( "" );