Merge pull request #2176 from viniciusbds/master

Fix bug when accessing empty list
This commit is contained in:
Antonin Delpeuch 2019-10-10 17:10:26 +01:00 committed by GitHub
commit 52ea417309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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