Skip to content

Commit

Permalink
Add checkNotNull
Browse files Browse the repository at this point in the history
  • Loading branch information
drpmma committed Jan 10, 2024
1 parent c5872a1 commit f466ae1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public ClientConfigurationBuilder enableSsl(boolean sslEnabled) {
* @return The {@link ClientConfigurationBuilder} instance, to allow for method chaining.
*/
public ClientConfigurationBuilder setNamespace(String namespace) {
this.namespace = namespace;
this.namespace = checkNotNull(namespace, "namespace should not be null");
return this;
}

Expand Down

0 comments on commit f466ae1

Please sign in to comment.