diff --git a/modules/misc/playlist/m3u.c b/modules/misc/playlist/m3u.c
index 1773a4eaeee7940d63cea55b5449c2169fcb7866..8f9e509853784964675d9228b095474184bfff2e 100644
--- a/modules/misc/playlist/m3u.c
+++ b/modules/misc/playlist/m3u.c
@@ -51,6 +51,9 @@ static void DoChildren( playlist_t *p_playlist, playlist_export_t *p_export,
     for( i = 0; i< p_root->i_children ; i++)
     {
         playlist_item_t *p_current = p_root->pp_children[i];
+        if( !p_current )
+            continue;
+
         if( p_current->i_flags & PLAYLIST_SAVE_FLAG )
             continue;