[
https://issues.jboss.org/browse/WFCORE-3904?page=com.atlassian.jira.plugi...
]
Jean-Francois Denise commented on WFCORE-3904:
----------------------------------------------
Even by handling the NPE at the CLI level, we then run into AESH-471 in this case.
NPE at TAB completion
---------------------
Key: WFCORE-3904
URL:
https://issues.jboss.org/browse/WFCORE-3904
Project: WildFly Core
Issue Type: Bug
Components: CLI
Affects Versions: 5.0.0.Final
Reporter: Erich Duda
Assignee: Jean-Francois Denise
Priority: Blocker
Labels: blocker-WF14
When you write some command into the CLI prompt (without enter), move cursor to beginning
of line and hit TAB, the CLI crashes on {{NullPointerException}}.
{code}
[standalone@localhost:9990 /] /system-property=x:read-resource
read-resource read-resource-description Exception
in thread "CLI Terminal Connection (uninterruptable)"
java.lang.NullPointerException
at
org.jboss.as.cli.impl.aesh.cmd.operation.OperationCommandContainer.isOperation(OperationCommandContainer.java:53)
at
org.jboss.as.cli.impl.aesh.CLICommandRegistry.getCommand(CLICommandRegistry.java:258)
at
org.jboss.as.cli.impl.aesh.CLICommandRegistry.isLegacyCommand(CLICommandRegistry.java:343)
at
org.jboss.as.cli.impl.aesh.CLICompletionHandler.complete(CLICompletionHandler.java:134)
at org.jboss.as.cli.impl.CLICommandCompleter.doComplete(CLICommandCompleter.java:132)
at org.jboss.as.cli.impl.CLICommandCompleter.complete(CLICommandCompleter.java:54)
at
org.jboss.as.cli.impl.aesh.CLICompletionHandler.complete(CLICompletionHandler.java:69)
at
org.jboss.as.cli.impl.aesh.CLICompletionHandler.complete(CLICompletionHandler.java:45)
at
org.aesh.readline.completion.CompletionHandler.createCompletionList(CompletionHandler.java:134)
at org.aesh.readline.completion.CompletionHandler.complete(CompletionHandler.java:102)
at org.aesh.readline.action.mappings.Complete.accept(Complete.java:62)
at org.aesh.readline.Readline$AeshInputProcessor.parse(Readline.java:245)
at org.aesh.readline.Readline$AeshInputProcessor.access$100(Readline.java:174)
at org.aesh.readline.Readline.readInput(Readline.java:95)
at org.aesh.readline.Readline.access$1000(Readline.java:57)
at org.aesh.readline.Readline$AeshInputProcessor.lambda$start$1(Readline.java:333)
at org.aesh.terminal.EventDecoder.accept(EventDecoder.java:118)
at org.aesh.terminal.EventDecoder.accept(EventDecoder.java:31)
at org.aesh.io.Decoder.write(Decoder.java:133)
at
org.aesh.readline.tty.terminal.TerminalConnection.openBlocking(TerminalConnection.java:212)
at
org.aesh.readline.tty.terminal.TerminalConnection.openBlocking(TerminalConnection.java:199)
at
org.jboss.as.cli.impl.ReadlineConsole$CLITerminalConnection.lambda$null$1(ReadlineConsole.java:171)
at java.lang.Thread.run(Thread.java:748)
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)