I have below code.
var cfg = _cfgUtil.GetCCfg(addr.Cnt, li.txDte);
if (cfg != null && cfg.Isabc)
{
await <some operation>
}
it is failing in second line
if (cfg != null && cfg.Isabc)
what Im not getting is , how to bypass this NUll reference check
exact error Im getting is :
System.NullReferenceException: 'Object reference not set to an instance of an object.'