OK so you have a null reference, which means that you are trying to use an object reference that has not been initialised. Unfortunately your picture has the dialog obscuring the offending line of code, but, at a guess it is in the line:
Clipboard.SetText(oElement.GetAttribute("HREF"))
So, where does
oElement
come from and what does it point to?