Fix bug when accessing empty list

This commit is contained in:
viniciusbds 2019-10-02 08:56:22 -03:00
parent 6743d5c878
commit 496f1fd2d0

View File

@ -184,7 +184,7 @@ public class MultiValuedCellSplitOperation extends AbstractOperation {
String s = value instanceof String ? ((String) value) : value.toString(); String s = value instanceof String ? ((String) value) : value.toString();
String[] values = null; String[] values = null;
if("lengths".equals(_mode)) { if("lengths".equals(_mode)) {
if (_fieldLengths.length >= 0 && _fieldLengths[0] > 0) { if (_fieldLengths.length > 0 && _fieldLengths[0] > 0) {
values = new String[_fieldLengths.length]; values = new String[_fieldLengths.length];
int lastIndex = 0; int lastIndex = 0;