Files
Marco 5646b7932b Fix: Prevent Nil Pointer Dereference in scrapeScene (#6857)
* 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>
2026-05-28 15:20:33 -05:00
..
2026-02-04 11:07:51 +11:00
2025-03-25 10:30:51 +11:00
2026-02-04 11:07:51 +11:00
2026-02-04 11:07:51 +11:00
2026-02-04 11:07:51 +11:00
2026-02-04 11:07:51 +11:00
2026-02-04 11:07:51 +11:00
2024-06-11 13:08:49 +10:00
2025-03-25 10:30:51 +11:00
2026-02-04 11:07:51 +11:00
2026-02-04 11:07:51 +11:00
2026-02-04 11:07:51 +11:00