Ebeo / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Picasa SDK, Album.ID get exception. #347

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In Album class ID attribute: return 
this.AlbumEntry.GetPhotoExtensionValue(GPhotoNameTable.Id); get 
"Object reference not set to an instance of an object." exception. 
AlbumEntry is NULL when get extension value.

Original issue reported on code.google.com by G.Talk.G on 1 Mar 2010 at 9:31

GoogleCodeExporter commented 9 years ago
I need more code. An Album should only be created with an albumentry to start 
with,
how did this happen to be null?

Original comment by fman...@gmail.com on 2 Mar 2010 at 6:16

GoogleCodeExporter commented 9 years ago
Code Snippet:
PicasaRequest PR = new PicasaRequest(new RequestSettings("...", <name>, 
<pass>));
                    List<Album> Albums =PR.GetAlbums().Entries.ToList();
                        foreach (var item in Albums)
                            item.ID --> "Get NULL reference exception"
                             ...
Actually the property ID is: 
this.AlbumEntry.GetPhotoExtensionValue(GPhotoNameTable.Id), but AlbumEntry 
is NULL. (AtomEntry is not NULL at the same time)

Original comment by G.Talk.G on 3 Mar 2010 at 7:26

GoogleCodeExporter commented 9 years ago
Fixed. I have no clue why my tests did not see that. Please verify by pulling 
the source code and building the dlls.

Original comment by fman...@gmail.com on 19 Mar 2010 at 3:51