aboutsummaryrefslogtreecommitdiff
path: root/juick-core/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-11-01 12:55:21 +0300
committerGravatar Vitaly Takmazov2017-11-01 12:55:21 +0300
commite2c2cf416db9637ebd41c489cf5a533824d17d4c (patch)
tree6f421d432b54a1a694af946438a5e6e4c1c53af5 /juick-core/src/main/java/com
parent0dcabe039a51a3a1aebd9a656a8dde2895b5e03a (diff)
notifications: fix tokens deletion
Diffstat (limited to 'juick-core/src/main/java/com')
-rw-r--r--juick-core/src/main/java/com/juick/ExternalToken.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/juick-core/src/main/java/com/juick/ExternalToken.java b/juick-core/src/main/java/com/juick/ExternalToken.java
index 933ecf82..f6094478 100644
--- a/juick-core/src/main/java/com/juick/ExternalToken.java
+++ b/juick-core/src/main/java/com/juick/ExternalToken.java
@@ -38,6 +38,12 @@ public class ExternalToken {
this.type = type;
this.token = token;
this.secret = secret;
+ if (this.type == null) {
+ throw new IllegalStateException("Token must have type");
+ }
+ if (this.token == null) {
+ throw new IllegalStateException("Token must have value");
+ }
}
public String getType() {