I need to update the DB also when a value in excel column is null:
CheckIntColumn(fileRow[ConstDBRow.STATUS].ToString().Trim(), membersRow.AnotherPremiumType.ToString().Trim(), "AnotherPremiumType");
But I am getting exception "Object reference not set to an instance of an object" when the column is null. and
?? string.Empty.Trim()
is not working.. what should I do?