Check for `entry` == null? I.e., if the user cancelled the dialog.