![]() |
Re: We got Sockets working
This is more for derek but when i send data to my robot using this code http://pastebin.com/x2KZepNR that i made i get a thread error and null pointer any ideas?
here is error Code:
[cRIO] Default disabled() method running, consider providing your own |
Re: We got Sockets working
That stack trace suggests that the variable "you" is null at line 40. But it looks like that would only happen if acceptAndOpen() throw an exception, and no exception was printed in the output you showed.
An aside about NullPointerExceptions - for how common these are, they can really only be created by:
For now I suggest adding code that explicitly checks for "you" being null or not. I hope this helps track down the bug. |
Re: We got Sockets working
Ok i did figure it out and i can recive data but i see a bunch of exceptions being thrown even know i can send and recive data. any idea why?
|
| All times are GMT -5. The time now is 13:02. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi