Hi, It could be a connection problem, I am not sure where is the error because the line numbers are different to the current version, please try to download the latest Java client library.
Cheers, Julian. On Jul 13, 7:16 pm, "Dexter's Brain" <[email protected]> wrote: > Hi, > I am using the ContactService to get the contacts from my account. The > code that I have written seems to work sometimes, and sometimes, it > gives me a NullPointerException. When I get this exception, I restart > my program, and it fetches the contacts with the same code. With > debugging also, I am not able to find out the reason. I am attaching > the stack trace for the exception. > > java.lang.NullPointerException > at com.google.gdata.wireformats.AltRegistry.lookupType > (AltRegistry.java:190) > at com.google.gdata.client.Service.parseResponseData(Service.java: > 1842) > at com.google.gdata.client.Service.getFeed(Service.java:1035) > at com.google.gdata.client.Service.getFeed(Service.java:897) > at com.google.gdata.client.GoogleService.getFeed(GoogleService.java: > 631) > at com.google.gdata.client.Service.getFeed(Service.java:916) > at com.abeanie.data.ContactFetcher.getAllContacts(ContactFetcher.java: > 31) > at com.abeanie.MainActivity.run(MainActivity.java:207) > at java.lang.Thread.run(Thread.java:1058) > > Every second time I run the program, this exception occurs. > > Thanks, > Dexter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Contacts API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-contacts-api?hl=en -~----------~----~----~----~------~----~------~--~---
