Can you add an `if (entry != null)` check here; `null` indicates that the user cancelled the open folder dialog. In that case we don't want to create and run the job.