mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 05:50:35 +00:00
The legacy-6 migration read the rect of each path from its points and checked whether the width or height was close to zero. A path with missing or empty points has no rect, so the check got nil and threw a NullPointerException. The migration then failed on every load of that file, and get-team-shared-files returned 500 for the whole team, so the "Add library" modal could not open. Treat a missing rect like a degenerate one and rebuild the selrect and points from the path content. Closes #12343 AI-assisted-by: claude-opus-5-5