mirror of
https://github.com/stashapp/stash.git
synced 2026-05-31 11:19:58 -05:00
* fix(scraper): prevent nil pointer dereference in scrapeScene When scrapeScene finds no results, ret remains nil and is passed to processSceneRelationships, which unconditionally dereferences it at line 89 (ret.Performers = ...), causing a panic. Initialize ret to an empty ScrapedScene so processSceneRelationships always has a valid pointer. This also preserves the intent of #3953: returning a scene with only relationship fields set when scraped non-relationship data is absent. Fixes panic: runtime error: invalid memory address or nil pointer dereference at pkg/scraper/mapped.go:89 in processSceneRelationships * Update mapped.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * test(scraper): add relationships-only scene regression test Signed-off-by: Marco <130363067+dutchdevil-83@users.noreply.github.com> * test(scraper): restore scene test and add relationships regression --------- Signed-off-by: Marco <130363067+dutchdevil-83@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>