Hello. I'm getting an unexpected NullPointerException when using the receive method from DatagramSocket. Here is my code:
DatagramPacket waiting = null;
try
{
DatagramSocket socketReceive = new DatagramSocket(100);
socketReceive.receive(waiting);
}
catch(IOException e)
{
}
The exact error is...
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.