We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0518fa commit 4895dffCopy full SHA for 4895dff
1 file changed
core/src/main/java/com/auth0/authentication/Authentication.java
@@ -28,12 +28,16 @@
28
import com.auth0.Token;
29
import com.auth0.UserProfile;
30
31
+import static com.auth0.authentication.api.util.CheckHelper.checkArgument;
32
+
33
public class Authentication {
34
35
private final UserProfile profile;
36
private final Token token;
37
38
public Authentication(UserProfile profile, Token token) {
39
+ checkArgument(profile != null, "profile must be non-null");
40
+ checkArgument(token != null, "token must be non-null");
41
this.profile = profile;
42
this.token = token;
43
}
0 commit comments