From 3103b678842d530e8d4cf81f4335fd210dd3114d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 19 Jul 2021 17:31:16 +0800 Subject: check nil --- script/parser/luadoc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 10a0b4d7..aeef1a37 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -643,7 +643,7 @@ function parseType(parent) return false end local line = Lines[row + i + 1] - if line.finish < nextComm.start then + if not line or line.finish < nextComm.start then return false end if nextComm.text:sub(1, 2) == '-@' then -- cgit v1.2.3