Start and End point null exception

Fixed by removing deleting pointers which Oksana own then