Skip to content

Commit 081c6ff

Browse files
committed
check nil
1 parent d95fe20 commit 081c6ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

script/core/diagnostics/missing-local-export-doc.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ local function findSetField(ast, name, callback)
1414
return
1515
end
1616
local func = funcPtr.value
17+
if not func then
18+
return
19+
end
1720
if funcPtr.type == 'local' and func.type == 'function' then
1821
helper.CheckFunction(func, callback, 'DIAG_MISSING_LOCAL_EXPORT_DOC_COMMENT', 'DIAG_MISSING_LOCAL_EXPORT_DOC_PARAM', 'DIAG_MISSING_LOCAL_EXPORT_DOC_RETURN')
1922
end

0 commit comments

Comments
 (0)