Commit 959daaa0 authored by Duc Cao's avatar Duc Cao

Fix bug ArrayIndexOutOfBound

parent 0c1d2437
......@@ -687,6 +687,7 @@ public abstract class AProcess extends AProcessSupport {
assert fieldsResultWapiti[SourceExtractorConstant.numberFieldsPrim].endsWith(sourceExt)
|| fieldsResultWapiti[SourceExtractorConstant.numberFieldsPrim].equals(SourceExtractorConstant.OUT);
if (index + gapForEndOffset < listOfFieldsResultWapiti.size()
&& SourceExtractorConstant.numberFieldsPrim < fieldsResultWapiti.length
&& fieldsResultWapiti[SourceExtractorConstant.numberFieldsPrim].equals(SourceExtractorConstant.encodingI + sourceExt)) {
while (index + gapForEndOffset < listOfFieldsResultWapiti.size() && fieldsResultWapiti.length > 1
......@@ -745,6 +746,7 @@ public abstract class AProcess extends AProcessSupport {
assert fieldsResultWapitiSec[SourceExtractorConstant.numberFieldsSec].endsWith(sourceExt)
|| fieldsResultWapitiSec[SourceExtractorConstant.numberFieldsSec].equals(SourceExtractorConstant.OUT);
if (index + gapForEndOffset < listOfFieldsResultWapiti.size()
&& SourceExtractorConstant.numberFieldsSec < fieldsResultWapitiSec.length
&& fieldsResultWapitiSec[SourceExtractorConstant.numberFieldsSec].equals(SourceExtractorConstant.encodingI + sourceExt)
&& listOfFieldsResultWapiti.get(index + gapForEndOffset).length != 1) {
while (index + gapForEndOffset < listOfFieldsResultWapiti.size() && fieldsResultWapitiSec.length != 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment