]> git.sesse.net Git - vlc/commitdiff
qt4: add forgotten check so we don't try to get stuff from NULL-pointer
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 16 Aug 2009 12:20:18 +0000 (15:20 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 16 Aug 2009 12:21:26 +0000 (15:21 +0300)
modules/gui/qt4/components/playlist/playlist_model.cpp

index 654476973e116de9825941023061b374140b9238..8b3606b4c58ce9ea9029931f0aa80b21b6b4c661 100644 (file)
@@ -282,7 +282,7 @@ bool PLModel::dropMimeData( const QMimeData *data, Qt::DropAction action,
 void PLModel::removeItem( int i_id )
 {
     PLItem *item = FindById( rootItem, i_id );
-    if( currentItem && currentItem->p_input == item->p_input ) currentItem = NULL;
+    if( currentItem && item && currentItem->p_input == item->p_input ) currentItem = NULL;
     if( item ) item->remove( item );
 }