Short cast lists causing seg fault
|Reported by:||wazza||Owned by:|
Some movies can have very short cast lists (especially documentaries). In SapphireMediaPreview a shortend cast list is reduced to 3 for display, but if the original cast list was already less than 3 this causes an array bounds error.
The attached diff fixes the problem.
Platform: Leopard, but probably exists for all
Revision: CoreData branch r.806
To reproduce: Import a documentary ("An inconvenient truth" for example) and scroll down to it in the browser, Sapphire will stall and crash after 2 or 3 seconds.