Skip to content

Commit

Permalink
Example: fixed NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Nov 19, 2019
1 parent 9db02fe commit e02d511
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtins/src/test/java/org/jline/example/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ public void complete(LineReader reader, ParsedLine line, List<Candidate> candida
systemCompleter.compile();
List<Completer> completers = new ArrayList<>();
completers.add(systemCompleter);
completers.add(completer);
if (completer != null) {
completers.add(completer);
}
AggregateCompleter finalCompleter = new AggregateCompleter(completers);
Terminal terminal = builder.build();
System.out.println(terminal.getName()+": "+terminal.getType());
Expand Down

0 comments on commit e02d511

Please sign in to comment.