The `send` methods defined by `DatagramSocket` and `MulticastSocket` have been changed to throw an `IllegalArgumentException` if the socket is not connected and the `DatagramPacket` doesn't have a socket address. Prior to this change, these methods threw a `NullPointerException`.