From d94e79f39c361d76aff1634564c004e6a72c90b3 Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Thu, 9 Nov 2023 22:35:56 -0500 Subject: [PATCH] [fix] syncninja koreader nil error --- client/syncninja.koplugin/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/syncninja.koplugin/main.lua b/client/syncninja.koplugin/main.lua index cbf06a2..1984943 100644 --- a/client/syncninja.koplugin/main.lua +++ b/client/syncninja.koplugin/main.lua @@ -853,8 +853,8 @@ function SyncNinja:getLocalDocumentMetadata() docsettings:saveSetting("partial_md5_checksum", pmd5) end - -- Get Document Props - local doc_props = docsettings:readSetting("doc_props") + -- Get Document Props & Ensure Not Nil + local doc_props = docsettings:readSetting("doc_props") or {} local fdoc = bookinfo_books[v.file] or {} -- Update or Create