diff options
author | Vitaly Takmazov | 2017-11-01 12:55:21 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-11-01 12:55:21 +0300 |
commit | e2c2cf416db9637ebd41c489cf5a533824d17d4c (patch) | |
tree | 6f421d432b54a1a694af946438a5e6e4c1c53af5 /juick-core/src/main/java | |
parent | 0dcabe039a51a3a1aebd9a656a8dde2895b5e03a (diff) |
notifications: fix tokens deletion
Diffstat (limited to 'juick-core/src/main/java')
-rw-r--r-- | juick-core/src/main/java/com/juick/ExternalToken.java | 6 |
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() { |