Null check for getSelectedEntries