Marc

Marc

  • NA
  • 205
  • 54.3k

Null Exception

Dec 15 2014 1:58 PM

I have a method that sets a variable to null when declared, but am getting a security error stating that the method can dereference a null pointer, thereby raising a NullException. By declaring the variable a string.Empty would that eliminate the NullException? 


Answers (2)