check if media_list_player->media_list is null before locking - fixes #1524
authorFilippo Carone <littlejohn@videolan.org>
Mon, 17 Mar 2008 22:19:25 +0000 (23:19 +0100)
committerFilippo Carone <littlejohn@videolan.org>
Mon, 17 Mar 2008 22:19:25 +0000 (23:19 +0100)
core/src/test/java/org/videolan/jvlc/internal/MediaListPlayerTest.java

index 191a19a..e70211a 100644 (file)
@@ -101,15 +101,13 @@ public class MediaListPlayerTest
         Assert.assertEquals(0, exception.raised);
     }
 
-//    @Test
-    /**
-     * This test is disabled: see https://trac.videolan.org/vlc/ticket/1524
-     */
+    @Test
     public void mediaListPlayerPlayNoItemTest()
     {
         libvlc_exception_t exception = new libvlc_exception_t();
         LibVlcMediaListPlayer mediaListPlayer = libvlc.libvlc_media_list_player_new(libvlcInstance, exception);
         libvlc.libvlc_media_list_player_play(mediaListPlayer, exception);
+        Assert.assertEquals(1, exception.raised);
     }
 
 }