2
Answers

Null Exception

Photo of Marc

Marc

10y
1.4k
1

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)