Skip to content

Commit

Permalink
Ensure vision SafeSearchAnnotation defined before setting
Browse files Browse the repository at this point in the history
  • Loading branch information
GradeyCullins committed Nov 9, 2023
1 parent 4cf086a commit f95b598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func annotationToSafeSearchResponseRes(uri string, annotation *pb.AnnotateImageR
err = sql.NullString{String: "", Valid: false}
}

if annotation != nil {
if annotation != nil && annotation.SafeSearchAnnotation != nil {
return &ImageAnnotation{
Hash: Hash(uri),
URI: uri,
Expand Down

0 comments on commit f95b598

Please sign in to comment.