-
Mar 20th, 2013, 09:04 AM
#1
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules