Skip to content

Commit e35631a

Browse files
committed
fix crash on missing project file
1 parent 60dafc8 commit e35631a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua/neotest-vstest/dotnet_utils.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,11 @@ function M.get_proj_info(path)
150150

151151
if project_semaphore[proj_file] then
152152
semaphore = project_semaphore[proj_file]
153-
else
153+
else if proj_file then
154154
semaphore = nio.control.semaphore(1)
155155
project_semaphore[proj_file] = semaphore
156+
else
157+
return nil
156158
end
157159

158160
semaphore.acquire()

0 commit comments

Comments
 (0)