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

Prevent NPE when group has no default command #71

Conversation

findepi
Copy link
Contributor

@findepi findepi commented Jan 3, 2020

Fixes #12

@findepi findepi requested a review from martint January 11, 2020 19:50
@@ -86,7 +87,7 @@ private Cli(String name,
.map(group -> loadCommandGroup(
group.name,
group.description,
loadCommand(group.defaultCommand),
Optional.ofNullable(group.defaultCommand).map(MetadataLoader::loadCommand).orElse(null),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’d format it on multiple lines.

@findepi findepi force-pushed the findepi/master/prevent-npe-when-group-has-no-default-command-635942 branch from 7cf0650 to f671929 Compare January 19, 2020 19:01
@findepi findepi merged commit cc79a8f into airlift:master Jan 19, 2020
@findepi findepi deleted the findepi/master/prevent-npe-when-group-has-no-default-command-635942 branch January 19, 2020 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPE when group has no default command
2 participants