You should initialise the object before attempting to use it, but if for whatever reason you don't want to do this, you could place the code in a Try, Catch block which you would then be able to ignore the error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.