From: Antoine Cellerier Date: Tue, 10 May 2005 22:05:54 +0000 (+0000) Subject: check if pointers are NULL (Closes #86 -> we can release test1) X-Git-Tag: 0.8.2~270 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2c31c3a3da2fc41292351160023095e58ca6d30f;p=vlc check if pointers are NULL (Closes #86 -> we can release test1) event reporting in wxwin32 seems to be different than in wxgtk --- diff --git a/modules/gui/wxwindows/playlist.cpp b/modules/gui/wxwindows/playlist.cpp index b4eaaaa7c2..9a658dd4e4 100644 --- a/modules/gui/wxwindows/playlist.cpp +++ b/modules/gui/wxwindows/playlist.cpp @@ -1083,6 +1083,8 @@ void Playlist::OnActivateItem( wxTreeEvent& event ) LockPlaylist( p_intf->p_sys, p_playlist ); + if( !( p_wxitem && p_wxparent ) ) return; + p_item2 = playlist_ItemGetById(p_playlist, p_wxitem->i_id); p_node2 = playlist_ItemGetById(p_playlist, p_wxparent->i_id); if( p_item2 && p_item2->i_children == -1 )