check to see if selectedJob is null before calling a method of Job