Announcement Announcement Module
Collapse
No announcement yet.
NPE calling Shell.flash when the command is supplied on shell start up Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • NPE calling Shell.flash when the command is supplied on shell start up

    Hi,

    The command code (I hope Groovy is ok for this thread)
    @Autowired
    private Shell shell

    @CliCommand(value = "x", help = "x help")
    public String x(
    @CliOption(key = [ "message" ], mandatory = true, help = "The hello world message") final String message) {
    shell.flash(Level.INFO, 'flash', 'x')
    Thread.sleep(150)
    println 'that worked'
    return "Message = $message"
    }


    Works when I execute the command x in the shell, however I get an NPE when I run my application from the command line with x as an argument.

    I am running a modified version of the helloworld example at version 324b3ef.

    Thanks,

    Peter

  • #2
    Hi,
    Can you please file a JIRA issue about this?
    Mark

    Comment


    • #3
      https://jira.spring.io/browse/SHL-148

      Comment

      Working...
      X