troubleshooting Question

Testing for nothing causing an error as if it were nothing

Avatar of dgloveruk
dgloveruk asked on
ASP.NETVisual Basic.NET
2 Comments1 Solution10 ViewsLast Modified:
I have a routine that essentially assigned a class to a session property.
It is supposed to detect when no class has yet been created for this session and then do so.
It usually works fine but in certain situations that I can't recoginse it returns nothing and yet I cannot seem to test for that eventuality.
I could use a error catch but I would like to understand why testing if something is nothing can cause this error.  As you can see I test if the Current object is also nothing before accessing the session object.
I would appreciate any insights on how this can occur when I am literally trying to detect the error it raises.  

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros