Skip to content

Commit

Permalink
🐛 fix a panic when dep resolver returns nil
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <pgaikwad@redhat.com>
  • Loading branch information
pranavgaikwad committed Apr 30, 2024
1 parent a3c11b1 commit 36594f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/grpc/dependency_resolver_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 36594f0

Please sign in to comment.