Hi. I have the following code:
objRoot = objXnDoc.SelectSingleNode("/my:AddFloor/my:rtbBuildingsInUseGr1/my:rtbBuildingsInUseGr2/my:listBuildings", NamespaceManager);
if (objRoot.Value != "")
{
objRoot.DeleteSelf();
}
else
{
return;
}
and I get this error when there are no more lines to delete:
NullReferenceException was unhadlet by the user code.
Why? Thank you!
How do i bypass it?