This project has moved and is read-only. For the latest updates, please go here.

Null reference while SearchProcessResult

Jul 10, 2011 at 9:51 AM


While trying process result of search tweets I catch exception (Null reference), I debug it and find that language field is optional. So, I think error here:

Language = atomEntry.Element(twitter + "lang").Value, //line:502

I change it to:

 Language = atomEntry.Element(twitter + "lang") == null ? 
                                    string.Empty :
                                    atomEntry.Element(twitter + "lang").Value,

Jul 10, 2011 at 5:53 PM

Hi chrnikov,

Thanks, this will be fixed in the next release.