etherPort is null. You are apparently never initializing it with an actual Vector. I think you want:
public class Server extends Computer{
public Vector<Ethernet> etherPort;
public Server()
{
etherPort = new Vector<Ethernet>();
}
public void addPort(Ethernet t)
{
this.etherPort.addElement(t);
}
}
Matthew Flaschen
2009-06-10 13:33:38