diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 9fe5e9f00..63984f634 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -1553,14 +1553,15 @@ original parsed data. INFO is a plist holding export options." (timestamp (and (not (cdr date)) (eq (org-element-type (car date)) 'timestamp) (car date)))) - (concat - (format "\n%s" - "OrgSubtitle" - (if (and (plist-get info :odt-use-date-fields) timestamp) - (org-odt--format-timestamp (car date)) - (org-export-data (plist-get info :date) info))) - ;; Separator - "")))))) + (when date + (concat + (format "\n%s" + "OrgSubtitle" + (if (and (plist-get info :odt-use-date-fields) timestamp) + (org-odt--format-timestamp (car date)) + (org-export-data date info))) + ;; Separator + ""))))))) ;; Table of Contents (let* ((with-toc (plist-get info :with-toc)) (depth (and with-toc (if (wholenump with-toc)