4 messages in com.googlegroups.google-calendar-help-dataapiJava API Entry set/get Location
FromSent OnAttachments
r3v3r3nd21 Nov 2006 04:53 
r3v3r3nd21 Nov 2006 05:37 
Ryan Boyd (Google)22 Nov 2006 14:29 
r3v3r3nd23 Nov 2006 01:23 
Subject:Java API Entry set/get Location
From:r3v3r3nd (frie@googlemail.com)
Date:11/21/2006 04:53:52 AM
List:com.googlegroups.google-calendar-help-dataapi

Hi!

I use the java api to retrieve Event objects from my calendar. now i want to read out the location of the event:

List<Entry> entryList = resultFeed.getEntries();

Where tmp = null;

for(int i = 0; i < entryList.size(); i++) { tmpWhere = entryList.get(i).getExtension(Where.class);

System.out.println(tmpWhere.getValueString()); }

I get several objects out of my list, but when it comes to the "getValueString" I just get a "NullPointerException".

I am sure, that i have inserted locations at every entry at the calendar. Am I using the wrong method for fetching the location?

I hope, someone of you can help me out or give me a hint.

Thanks in advance, Chris