From fde40dc1c43fcb34cde3253127c3cc27abe7f1a7 Mon Sep 17 00:00:00 2001 From: Boris Buliga Date: Tue, 26 Jan 2021 08:45:19 +0200 Subject: [PATCH] (fix) parsing of missing props (#1406) Followup from #1404 --- org-roam.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org-roam.el b/org-roam.el index e86ed83..4e61119 100644 --- a/org-roam.el +++ b/org-roam.el @@ -635,7 +635,8 @@ If FILE-PATH is nil, use the current file." "Return the aliases from the current buffer. Reads from the \"roam_alias\" property." (let* ((prop (org-roam--extract-global-props '("ROAM_ALIAS"))) - (aliases (cdr (assoc "ROAM_ALIAS" prop)))) + (aliases (or (cdr (assoc "ROAM_ALIAS" prop)) + ""))) (condition-case nil (split-string-and-unquote aliases) (error @@ -701,7 +702,8 @@ tag." (defun org-roam--extract-tags-prop (_file) "Extract tags from the current buffer's \"#roam_tags\" global property." - (let* ((prop (cdr (assoc "ROAM_TAGS" (org-roam--extract-global-props '("ROAM_TAGS")))))) + (let* ((prop (or (cdr (assoc "ROAM_TAGS" (org-roam--extract-global-props '("ROAM_TAGS")))) + ""))) (condition-case nil (split-string-and-unquote prop) (error