I'm not getting it when debugging unfortunately :(
I am getting it from a log I keep when an exception is thrown. I have tried to recreate the behaviour when debugging but haven't been able to.
I am looking to add something to the log which will tell me which variable is coming in as Nothing
User Profile
Collapse
-
NullReferenceException - Get name of object that is nothing
I understand the cause of a NullReferenceEx ception but I was wondering if it is possible to determine the name of the object that is Nothing (or Null) and which is causing the exception. It would be very useful to be able to catch an exception of this kind and print the name of the object that is causing the problem.
No activity results to display
Show More
Leave a comment: