Null reference while SearchProcessResult

Jul 10, 2011 at 8: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 4:53 PM

Hi chrnikov,

Thanks, this will be fixed in the next release.