This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Original status: 1-Dispatched; Suggested Status: NEW Original Target Release: mako_dev; Suggested Target Milestone : Dev Original submitter: ckutler Description: In regards to the following code clip: public void prerender() { if ( dropdown1.getSelected() == null ) { try { personDataProvider.cursorFirst(); getSessionBean1().getTripRowSet().setObject(1, personDataProvider.getValue("PERSON.PERSONID")); tripDataProvider.refresh(); } catch (Exception e) { error("Cannot switch to person " + personDataProvider.getValue("PERSON.PERSONID")); log("Cannot switch to person " + personDataProvider.getValue("PERSON.PERSONID"), e); } } } This clip should call dropdown1.setSelected(personDataProvider.getValue("PERSON.PERSONID")) to set it to the first item? Otherwise, there will be a problem if some subsequent method expected the getSelected() to not be null?