Null reference while SearchProcessResult

Jul 10, 2011 at 9:51 AM

Hello, 

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,

Coordinator
Jul 10, 2011 at 5:53 PM

Hi chrnikov,

Thanks, this will be fixed in the next release.

Joe