public class LocalCall extends PhoneCall {
CheckedTime startTime;
CheckedTime endTime;
public LocalCall(CheckedTime startTime, CheckedTime endTime) {
super(startTime, endTime);
Your problem is that you have startTime and endTime variables in your LocalCall class as well as in the parent Phonecall class (assumption). In the LocalCall constructor you pass the values for start and end upto the parent class via the call to the super constructor but the variables in the LocalCall class remain uninitialised and therefore are null.