Hi all,

I'm writing a Java picasa sync client, and as of yesterday suddenly started 
getting an exception when I try and pull out the album feed link from 
album.getLinks();

I'm using a standard PicasaWebClient implementation (taken from here: 
http://gdata-java-client.googlecode.com/svn/trunk/java/sample/photos/PicasawebClient.java)
 
and when I call this code:

/**
 * Helper function to get a link by a rel value.
 */
public String getLinkByRel(List<Link> links, String relValue) {
    for (Link link : links) {
        if (relValue.equals(link.getRel())) {
            return link.getHref();
        }
    }
    throw new IllegalArgumentException("Missing " + relValue + " link.");
}


I get this exception:

*2015-02-17 07:46:59,497 
[ERROR|com.otway.picasasync.syncutil.SyncManager|SyncManager] Exception 
synchronising Snowy Garden
java.lang.IllegalArgumentException: Missing 
http://schemas.google.com/g/2005#feed link.
        at 
com.otway.picasasync.webclient.PicasawebClient.getLinkByRel(PicasawebClient.java:449)*


Now, this was working fine until yesterday but then started breaking for a few 
albums. Have I corrupted my albums? Or is there something else going on?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to