Prevent null pointers gui, start and end time can be null