Link to home
Start Free TrialLog in
Avatar of RGuillermo
RGuillermoFlag for United States of America

asked on

visual basic 2013 System.nullreferenceException How to catch a nothing ?

Hello Experts,
my programs opens a site and operates it perfectly only after some five or six good executions it shows the error message shown in the image.

some times the site is faster sending the data and some times its slower, I gues this creates the probem and sometimes the variable v3 is nothing.... until the next iteration.... so how can I catch  a "nothing" without getting an error message ?

Best regards.
system-nulreferenceException.jpg
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RGuillermo

ASKER

Fernando the
If v3.activeElement Is Nothing
Worked perfectly!
Thank you very much!!
Not a problem rguillermo, glad to help.