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