aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java')
-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