sometime the response does not have the required
filed to process and consider it as blank instead of
failing it
CLI-37
Change-Id: I953fcd5ee92aac5ca926029462f15f45ba765dfc
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
for (int i = 0; i < this.findMaxRows(); i++) {
List<Object> row = new ArrayList<>();
for (List<String> cols : this.data.values()) {
- if (cols.size() > i) {
+ if (cols != null && cols.size() > i) {
String value = cols.get(i);
// split the cell into multiple sub rows
if (isNormalize && value != null && value.length() > MAX_COLUMN_LENGTH) {
row.add(value);
}
} else {
- // now value exist for this column
+ // no value exist for this column
row.add(null);
}
}