Skip to content

Commit

Permalink
<fix>(jline): fix jline not complete sysconfig bug. (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyonRay authored Oct 23, 2024
1 parent 481c9ee commit 0131a89
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/console/command/JlineUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,15 @@ private static List<Completer> generateComplters(Client client) {
if (group.isPresent() && !group.get().getNodeList().isEmpty()) {
group.get()
.getNodeList()
.forEach(groupNodeInfo -> keys.addAll(groupNodeInfo.getFeatureKeys()));
.forEach(
groupNodeInfo -> {
if (groupNodeInfo.getFeatureKeys() != null) {
keys.addAll(groupNodeInfo.getFeatureKeys());
}
if (groupNodeInfo.getSupportConfigs() != null) {
keys.addAll(groupNodeInfo.getSupportConfigs());
}
});
}
} catch (Exception ignored) {
logger.info("Failed to get group info list, skip feature keys.");
Expand Down

0 comments on commit 0131a89

Please sign in to comment.