aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsSourceService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsSourceService.java')
-rw-r--r--src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsSourceService.java28
1 files changed, 13 insertions, 15 deletions
diff --git a/src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsSourceService.java b/src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsSourceService.java
index 518d5e2..7ce8ead 100644
--- a/src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsSourceService.java
+++ b/src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsSourceService.java
@@ -198,24 +198,22 @@ public class GoogleContactsSourceService
SRVRecord srvRecords[] =
NetworkUtils.getSRVRecords("xmpp-client", "tcp", domain);
- if(srvRecords == null)
+ if(srvRecords != null)
{
- return null;
- }
-
- // To detect that account is a google ones, we try the following:
- // - lookup in SRV and see if it is google.com;
- // - if the account has been created with GoogleTalk form;
- // - if it is an "external" google contact.
+ // To detect that account is a google ones, we try following:
+ // - lookup in SRV and see if it is google.com;
+ // - if the account has been created with GoogleTalk form;
+ // - if it is an "external" google contact.
- // SRV checks
- for(SRVRecord srv : srvRecords)
- {
- if(srv.getTarget().endsWith("google.com") ||
- srv.getTarget().endsWith("google.com."))
+ // SRV checks
+ for(SRVRecord srv : srvRecords)
{
- isGoogleAppsOrGmail = true;
- break;
+ if(srv.getTarget().endsWith("google.com") ||
+ srv.getTarget().endsWith("google.com."))
+ {
+ isGoogleAppsOrGmail = true;
+ break;
+ }
}
}