int idx = menuList.getSelectedIndex(); if (!menuList.getString(idx).equals(NOMIDLETS)) { return (MIDletEntry) midletEntries.elementAt(idx); } else { return null;
if (menuList != null) { int idx = menuList.getSelectedIndex(); if (!menuList.getString(idx).equals(NOMIDLETS)) { return (MIDletEntry) midletEntries.elementAt(idx); }
	public MIDletEntry getSelectedMidletEntry()	{		int idx = menuList.getSelectedIndex();		if (!menuList.getString(idx).equals(NOMIDLETS)) {			return (MIDletEntry) midletEntries.elementAt(idx);		} else {			return null;		}	}