Another fix

1 view
Skip to first unread message

Anjo Krank

unread,
Apr 11, 2008, 6:09:10 AM4/11/08
to milenia...@googlegroups.com
Prevent an index out of bounds when loading a file with no audio:

+++ b/MilGraServer/src/com/milgra/server/StreamBuffer.java
@@ -194,7 +194,7 @@ public class StreamBuffer

// if don't already have it

- if ( !pool.containsKey( indexX ) )
+ if ( !pool.containsKey( indexX ) && indexX <
bodysizes.size())
{

Reply all
Reply to author
Forward
0 new messages