Tests and bugfixes for XorErasureDecoder.

This commit is contained in:
akwizgran
2012-01-20 17:02:17 +00:00
parent 2b737e7e53
commit 74dd4e277f
3 changed files with 69 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ class XorErasureDecoder implements ErasureDecoder {
// All the pieces must have the same length - take the minimum
int length = MAX_FRAME_LENGTH;
for(int i = 0; i < n; i++) {
if(set[i] == null) {
if(set[i] != null) {
int len = set[i].getLength();
if(len < length) length = len;
}