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

CLI ends with NullPointerException after "ls" command and "tab" key

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.Alpha11
    • Fix Version/s: 2.0.0.Alpha13
    • Component/s: CLI
    • Labels:
      None

      Description

      Description of problem:
      CLI ends with java.lang.NullPointerException after "ls" command and "tab" key

      How reproducible:
      100 %

      Steps to Reproduce:

      1. ./standalone.sh
      2. ./jboss-cli.sh -c
      3. ls / -l
        • don't press "enter" key
      4. press "tab" key

      Actual results:

      java.lang.NullPointerException
      	at org.jboss.as.cli.handlers.LsHandler.getOperationRequestAddress(LsHandler.java:402)
      	at org.jboss.as.cli.handlers.LsHandler.access$000(LsHandler.java:52)
      	at org.jboss.as.cli.handlers.LsHandler$1.canAppearNext(LsHandler.java:75)
      	at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:257)
      	at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:73)
      	at org.jboss.as.cli.CommandCompleter.doComplete(CommandCompleter.java:126)
      	at org.jboss.as.cli.CommandCompleter.complete(CommandCompleter.java:63)
      	at org.jboss.as.cli.impl.Console$Factory$1$1.complete(Console.java:122)
      	at org.jboss.aesh.console.Console.complete(Console.java:1227)
      	at org.jboss.aesh.console.Console.parseOperation(Console.java:551)
      	at org.jboss.aesh.console.Console.read(Console.java:453)
      	at org.jboss.aesh.console.Console.read(Console.java:347)
      	at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:198)
      	at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1322)
      	at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:272)
      	at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:45)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.jboss.modules.Module.run(Module.java:308)
      	at org.jboss.modules.Main.main(Main.java:487)
      

      Expected results:
      No errors on output

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aloubyansky Oleksiy Lubyanskyy
                  Reporter:
                  mkopecky Marek Kopecky
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: