]> git.sesse.net Git - vlc/commitdiff
check if pointers are NULL (Closes #86 -> we can release test1)
authorAntoine Cellerier <dionoea@videolan.org>
Tue, 10 May 2005 22:05:54 +0000 (22:05 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 10 May 2005 22:05:54 +0000 (22:05 +0000)
event reporting in wxwin32 seems to be different than in wxgtk

modules/gui/wxwindows/playlist.cpp

index b4eaaaa7c2ce022bd3a4b15d63bb93807a6f9038..9a658dd4e4c40c71e9462ce3ad13a5db371c91e7 100644 (file)
@@ -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 )