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

FixDocsService
Ya
8 Julai 2026, 17:40 UTC
Mwandishi
Kamo
Ahadi ya
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.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei