check for null selected item