Skip to content

Commit

Permalink
Fix nil panic when submitting fp for non-existant scene (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash committed Feb 16, 2024
1 parent 544735a commit ac8c637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scene/scene.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func SubmitFingerprint(ctx context.Context, fac models.Repo, input models.Finger
return false, err
}

if scene.Deleted {
if scene == nil || scene.Deleted {
// FIXME: this should error out, but due to the use-case in Stash,
// it will stop submitting fingerprints if a single one fails
// see https://github.com/stashapp/stash/blob/v0.16.1/pkg/scraper/stashbox/stash_box.go#L254-L257
Expand Down

0 comments on commit ac8c637

Please sign in to comment.