Bounds-check assoc-type ordinal lookups (fixes Materials list 500)

FixDocsService
Shipped
July 8, 2026 at 5:40 PM UTC
Author
Kamo
Commit
bfdf29d

DocsService was running a shared-lib built before ImageAssocType.MATERIALS (ordinal 11) was added, so listDocuments' ImageAssocType.values()[11] threw ArrayIndexOutOfBounds → 500, which surfaced as an empty Marketing Materials page ('No materials yet'). Pushing rebuilds against the current shared-lib (which has MATERIALS). Also replace the raw values()[id] ordinal lookups with a bounds-checked helper so a stale-enum mismatch yields a clear message instead of a cryptic 500.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing