Skip to content

Commit 64e3637

Browse files
committed
Fix null check in derived_testenv function
Prevent calling derived_project() with nothing argument when project_uri is nothing. This caused errors when test items were detected without proper project setup.
1 parent b84d770 commit 64e3637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layer_testitems.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Salsa.@derived function derived_testenv(rt, uri)
117117

118118
# Sometimes the fallback project is actually not a fallback project
119119
# because there is no manifest, here we check for that
120-
if derived_project(rt, project_uri) === nothing
120+
if project_uri !== nothing && derived_project(rt, project_uri) === nothing
121121
project_uri = nothing
122122
end
123123
end

0 commit comments

Comments
 (0)