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

Implement a helper method to handle null checks #152

Closed
marvin-we opened this issue Nov 14, 2017 · 0 comments
Closed

Implement a helper method to handle null checks #152

marvin-we opened this issue Nov 14, 2017 · 0 comments
Milestone

Comments

@marvin-we
Copy link
Owner

Instead of doing a null check in every setter:

if (challenged == null) {
            throw new InvalidParameterException("An account name needs to be provided.");
}
 this.challenged = challenged;

There should be a ``setIfNotNull` method.

@marvin-we marvin-we added this to the 0.4.3 milestone Nov 14, 2017
marvin-we pushed a commit that referenced this issue Nov 18, 2017
marvin-we pushed a commit that referenced this issue Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant