From 2e3c195280c23bae631508a64428c0f19f21b298 Mon Sep 17 00:00:00 2001 From: Hironori Kitagawa Date: Wed, 3 Sep 2014 20:38:22 +0900 Subject: [PATCH] ltj-ruby.lua: cache_handle can be nil --- src/ltj-ruby.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ltj-ruby.lua b/src/ltj-ruby.lua index 4007fba..145f332 100644 --- a/src/ltj-ruby.lua +++ b/src/ltj-ruby.lua @@ -571,7 +571,7 @@ local post_lown do local function write_aux(wv, num) local id = has_attr(wv, attr_ruby_id) - if id>0 then + if id>0 and cache_handle then cache_handle:write( 'luatexja.ruby.old_break_info[' .. tostring(id) .. ']=' .. num -- 2.11.0