Deal exception when user does not select a file and clicks confirm