KamoCRM

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

FixDocsService
Shipped
8 ஜூலை, 2026 அன்று 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?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing