Refs #6141 - class cast exception ( IDEMPIERE-3832)

This commit is contained in:
Murilo Habermann Torquato 2018-11-24 20:32:36 -02:00
parent 8ab10c8bf5
commit 0c3e75c1d0
1 changed files with 4 additions and 1 deletions

View File

@ -481,7 +481,10 @@ public class GridTabCSVImporter implements IGridTabImporter
StringBuilder errMsg = new StringBuilder();
try {
map = mapReader.read( (String []) header.toArray(), processors);
// devCoffee #6141 - IDEMPIERE-3832
String[] hdrs = new String[header.size()];
header.toArray(hdrs);
map = mapReader.read( hdrs, processors);
} catch (SuperCsvCellProcessorException e) {
int idx = e.getCsvContext().getColumnNumber() - 1;
errMsg.append(header.get(idx)).append(": ").append(e.getMessage());