Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rd keys list NullPointerException when no keys are present #177

Closed
xirixiz opened this issue May 4, 2018 · 2 comments
Closed

rd keys list NullPointerException when no keys are present #177

xirixiz opened this issue May 4, 2018 · 2 comments
Assignees
Labels

Comments

@xirixiz
Copy link

xirixiz commented May 4, 2018

"rd keys list" gives a NullPointerException when no keys are present in Rundeck.
It would be nice to receive a message that currently no resources are configured, or something like that.

@gschueler gschueler added the bug label May 4, 2018
@gschueler
Copy link
Member

can you paste the stacktrace?

@xirixiz
Copy link
Author

xirixiz commented May 11, 2018

Exception in thread "main" java.lang.NullPointerException
        at org.rundeck.client.tool.commands.Keys.lambda$list$0(Keys.java:92)
        at org.rundeck.client.util.Client.apiCallDowngradable(Client.java:578)
        at org.rundeck.client.tool.commands.AppCommand.apiCallDowngradable(AppCommand.java:118)
        at org.rundeck.client.tool.commands.AppCommand.apiCall(AppCommand.java:61)
        at org.rundeck.client.tool.commands.Keys.list(Keys.java:92)
        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:498)
        at org.rundeck.toolbelt.ToolBelt$MethodInvoker.run(ToolBelt.java:820)
        at org.rundeck.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:523)
        at org.rundeck.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:390)
        at org.rundeck.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:523)
        at org.rundeck.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:390)
        at org.rundeck.toolbelt.ToolBelt$CommandSet.runMain(ToolBelt.java:351)
        at org.rundeck.client.tool.Main.main(Main.java:69)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants