Because of wrong index being captured in debug mode , failing with
ArrayIndexOutOfBoundException and elan instance creation is failing.
Change-Id: I0ef479bb5e545e4c8587dfa077ab4334afe778b3
Signed-off-by: eaksahu <a.k.sahu@ericsson.com>
}
elanSegmentsBuilder.setSegmentationIndex(index);
segments.add(elanSegmentsBuilder.build());
- LOG.debug("Added segment {} to ELANInstance", segments.get((int)index - 1));
+ LOG.debug("Added segment {} to ELANInstance", segments.get((int)index));
}
return segments;
}