1
Vote

NullException error

description

found a null exception:

Here:
    private string GetSecondaryID(AdType adType)
    {
        return CurrentCulture.AdProbabilities
                .Where(x => x.AdType == adType)
                .First().SecondaryID;
    }
you have to put a try catch

if the SecondaryID is null ... crash!

Same here:
    private string GetAppID(AdType adType)
    {
        return CurrentCulture.AdProbabilities
                .Where(x => x.AdType == adType)
                .First().AppID;
    }
 

comments