git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'subtree'
[fanfix.git]
/
src
/
jexer
/
TList.java
diff --git
a/src/jexer/TList.java
b/src/jexer/TList.java
index 6b0a205bf422e2bd18cc186f226777d6c0c98084..12e0b8a33cce977e93ce4a6fd30080adeb75e8dc 100644
(file)
--- 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);
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 {
if (getHorizontalValue() < line.length()) {
line = line.substring(getHorizontalValue());
} else {