Skip to content

Commit

Permalink
Fix: missing null check in certifyLegal blobstore backend (#2193)
Browse files Browse the repository at this point in the history
Signed-off-by: robert-cronin <robert.owen.cronin@gmail.com>
  • Loading branch information
robert-cronin authored Oct 11, 2024
1 parent c639eca commit 0efa268
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/assembler/backends/keyvalue/certifyLegal.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,11 @@ func (c *demoClient) CertifyLegal(ctx context.Context, filter *model.CertifyLega
if err != nil {
return nil, gqlerror.Errorf("%v :: %v", funcName, err)
}

if legal == nil {
continue
}

out = append(out, legal)
}
}
Expand Down

0 comments on commit 0efa268

Please sign in to comment.