I have created working sockets, and when I try to send text or numbers, its ok, but when im trying to send my custom class object, i got NullPointerException... Here is some cod
You need to Serialize your Custom class before sending it through socket.The object that you are sending in
out.writeObject(list);
should be serialized, your class should implement java.io.Serializable interface