Skip to content

Commit

Permalink
rxvt-terminal: NullPointerException with infocmp warning, fixes #550
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Jul 6, 2020
1 parent d2ac4ef commit 3b0d5d5
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminal/src/main/java/org/jline/utils/Curses.java
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ private static void doTputs(Appendable out, String str, Object... params) throws
}
break;
case '$':
if (str.charAt(index) == '<') {
if (index < length && str.charAt(index) == '<') {
// We don't honour delays, just skip
int nb = 0;
while ((ch = str.charAt(++index)) != '>') {
Expand Down

0 comments on commit 3b0d5d5

Please sign in to comment.