help system
[fanfix.git] / src / jexer / TList.java
index 6b0a205bf422e2bd18cc186f226777d6c0c98084..12e0b8a33cce977e93ce4a6fd30080adeb75e8dc 100644 (file)
@@ -398,6 +398,9 @@ public class TList extends TScrollableWidget {
         int topY = 0;
         for (int i = begin; i < strings.size(); i++) {
             String line = strings.get(i);
+            if (line == null) {
+                line = "";
+            }
             if (getHorizontalValue() < line.length()) {
                 line = line.substring(getHorizontalValue());
             } else {