aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDanny van Heumen <danny@dannyvanheumen.nl>2015-07-20 21:48:36 +0200
committerDanny van Heumen <danny@dannyvanheumen.nl>2015-07-20 22:29:46 +0200
commitc30857d052fc06d62623593659637520906fa0ab (patch)
tree67929caefc1cd7e1204ed7abde8f43c486cceb69 /src
parentaa5eeee24a5a546bd1f5b83696a231bfe71fc0f9 (diff)
downloadjitsi-c30857d052fc06d62623593659637520906fa0ab.zip
jitsi-c30857d052fc06d62623593659637520906fa0ab.tar.gz
jitsi-c30857d052fc06d62623593659637520906fa0ab.tar.bz2
Throw IllegalStateException in case client ID or client secret is missing.
Diffstat (limited to 'src')
-rw-r--r--src/net/java/sip/communicator/impl/googlecontacts/OAuth2TokenStore.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/googlecontacts/OAuth2TokenStore.java b/src/net/java/sip/communicator/impl/googlecontacts/OAuth2TokenStore.java
index 9a503f4..bd64bb7 100644
--- a/src/net/java/sip/communicator/impl/googlecontacts/OAuth2TokenStore.java
+++ b/src/net/java/sip/communicator/impl/googlecontacts/OAuth2TokenStore.java
@@ -149,6 +149,12 @@ public class OAuth2TokenStore
public synchronized Credential get(final String identity)
throws FailedAcquireCredentialException
{
+ if (GOOGLE_API_CLIENT_ID == null || GOOGLE_API_CLIENT_SECRET == null)
+ {
+ throw new IllegalStateException("Missing client ID or client "
+ + "secret. It is not possible to use Google Contacts API "
+ + "without it.");
+ }
if (this.store.get() == null)
{
try