X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTList.java;h=12e0b8a33cce977e93ce4a6fd30080adeb75e8dc;hb=HEAD;hp=6b0a205bf422e2bd18cc186f226777d6c0c98084;hpb=9240f032a51de25bdc90bdebec99bb63896b24d0;p=fanfix.git diff --git a/src/jexer/TList.java b/src/jexer/TList.java index 6b0a205..12e0b8a 100644 --- a/src/jexer/TList.java +++ b/src/jexer/TList.java @@ -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 {