From 36594f0dae2f0b9d1a0c8bc73a095dcfe4606343 Mon Sep 17 00:00:00 2001 From: Pranav Gaikwad Date: Tue, 30 Apr 2024 12:56:54 -0400 Subject: [PATCH] :bug: fix a panic when dep resolver returns nil Signed-off-by: Pranav Gaikwad --- provider/grpc/dependency_resolver_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/grpc/dependency_resolver_client.go b/provider/grpc/dependency_resolver_client.go index 2b526fef..4b1e5abb 100644 --- a/provider/grpc/dependency_resolver_client.go +++ b/provider/grpc/dependency_resolver_client.go @@ -35,7 +35,7 @@ func (d *dependencyLocationResolverClient) GetLocation(ctx context.Context, dep }, DepFile: depFile, }) - if res.Location == nil { + if res == nil || res.Location == nil { return engine.Location{}, nil } loc := engine.Location{}