Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3904

NPE at TAB completion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 6.0.0.Alpha2
    • 5.0.0.Final
    • CLI
      • Connect to standalone
      • Insert /system-property=x:read-resource without hitting of enter
      • Move cursor to beginning of the command
      • hit TAB
    • Regression

      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.

      [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)
      

              jdenise@redhat.com Jean Francois Denise
              eduda_jira Erich Duda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: