NullReferenceException with custom plugin

Could be another line as well.

Would you say the plugin would work with out the issue I've brought up?

No, the error is going to prevent the rest of your code from running beyond where the error is.

Once I manage to find a fix for the error, would you say the rest of the code looks fine?