[latex3-commits] [git/LaTeX3-latex3-luaotfload] travis-tl-dev: Fix bug when harf is passed an non-existing file (6390763)

Marcel Fabian Krüger tex at 2krueger.de
Sat Jan 25 00:55:22 CET 2020


Repository : https://github.com/latex3/luaotfload
On branch  : travis-tl-dev
Link       : https://github.com/latex3/luaotfload/commit/6390763f6641027f767fe025fa23dddf9288021f

>---------------------------------------------------------------

commit 6390763f6641027f767fe025fa23dddf9288021f
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Jan 25 00:54:04 2020 +0100

    Fix bug when harf is passed an non-existing file


>---------------------------------------------------------------

6390763f6641027f767fe025fa23dddf9288021f
 src/luaotfload-harf-define.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/luaotfload-harf-define.lua b/src/luaotfload-harf-define.lua
index 3c588c1..a320623 100644
--- a/src/luaotfload-harf-define.lua
+++ b/src/luaotfload-harf-define.lua
@@ -46,6 +46,7 @@ local function loadfont(spec)
   local key = string.format("%s:%d", gsub(path, "[/\\]", ":"), sub)
 
   local attributes = lfs.attributes(path)
+  if not attributes then return end
   local size, date = attributes.size or 0, attributes.modification or 0
 
   local cached = containers.read(facecache, key)





More information about the latex3-commits mailing list