summaryrefslogtreecommitdiffstats
path: root/framework/src
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java b/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java
index 48a4e6ea..8b7a9b83 100644
--- a/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java
+++ b/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java
@@ -123,7 +123,7 @@ public class OnapCommandPrint {
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) {
@@ -133,7 +133,7 @@ public class OnapCommandPrint {
row.add(value);
}
} else {
- // now value exist for this column
+ // no value exist for this column
row.add(null);
}
}