From 7e8fd09376a75ac793bbea4efff30d5056fea559 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab <hakim.elhattab@gmail.com>
Date: Wed, 25 Jun 2014 13:56:24 +0200
Subject: [PATCH] fix npe

---
 js/reveal.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/reveal.js b/js/reveal.js
index 2355098..edf3073 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2618,7 +2618,7 @@
 	 */
 	function stopEmbeddedContent( slide ) {
 
-		if( slide ) {
+		if( slide && slide.parentNode ) {
 			// HTML5 media elements
 			toArray( slide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
 				if( !el.hasAttribute( 'data-ignore' ) ) {
-- 
GitLab