digitaldrew
Well-known member
- Joined
- Nov 10, 2012
- Messages
- 167
- Programming Experience
- Beginner
Hey everyone. I have a program which does some basic proxy testing using multiple threads. Each proxy is put into the queue and then pulled to be tested. For some reason I occasionally get a "NullReference Exception" was unhandled error. I've tried doing a number of things with the code (IsNot Nothing..etc) but it still shows up. You can see the screenshot below and what the last changes I did were.
![error2.jpg error2.jpg](https://vbdotnetforums.com/data/attachments/3/3246-ebab1d9efbb7fba0fd5392ed585b7db8.jpg)
Any ideas why this code (or even something like If Queue(0).url isNot Nothing then..) wouldn't fix the issue of this null exception?
![error1.jpg error1.jpg](https://vbdotnetforums.com/data/attachments/3/3245-7334d67b7aa049891bdb17e91c72c002.jpg)
![error2.jpg error2.jpg](https://vbdotnetforums.com/data/attachments/3/3246-ebab1d9efbb7fba0fd5392ed585b7db8.jpg)
Any ideas why this code (or even something like If Queue(0).url isNot Nothing then..) wouldn't fix the issue of this null exception?