Fix: draw start and end point

when startPoint and endPoint null, its crashes :(