Hello all,
Does anyone have any idea why I am getting null exception (Subject Line error)?
if (fixedDemand != null && Base.FixedDemand != null && Base.FixedDemand.Any())
{
PXResult<POFixedDemand> matchingDemand = Base.FixedDemand.Select()
.Where(r => r.Record.RefNoteID == fixedDemand.RefNoteID &&
r.Record.FixedSource == fixedDemand.FixedSource &&
r.Record.SiteID == fixedDemand.SiteID &&
r.Record.PlanType == fixedDemand.PlanType &&
r.Record.PlanID == fixedDemand.PlanID &&
r.Record.RecordID == fixedDemand.RecordID)
.FirstOrDefault();
}
Best answer by aaghaei
View original