From ae7f4de7a04c9fac9fa36836370711cdb7f12fa7 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sun, 14 Apr 2013 10:28:27 -0600 Subject: [PATCH 2/2] Ensure nil is not passed to regexp function * lisp/ox-beamer.el (org-beamer--format-frame): If contents is nil, then replace it with an empty string. --- lisp/ox-beamer.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index 87458f0..d1cfbfd 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -513,7 +513,7 @@ used as a communication channel." ;; remove the first word from the contents in the PDF ;; output. (if (not fragilep) contents - (replace-regexp-in-string "\\`\n*" "\\& " contents)) + (replace-regexp-in-string "\\`\n*" "\\& " (or contents ""))) "\\end{frame}"))) (defun org-beamer--format-block (headline contents info) -- 1.8.2.1