PDA

View Full Version : [FIXED] RowEditor NPE after cancel BeforeEdit event



MrExt
2 Jun 2009, 6:35 AM
isDirty() throws NPE when invoked after BeforeEdit event gets cancelled.
second call gets editing=true and values=null;


com.extjs.gxt.ui.client.widget.grid.RowEditor

@SuppressWarnings("unchecked")
publicvoid startEditing(int rowIndex, boolean doFocus) {
if (editing && isDirty()) {
showTooltip("You need to commit or cancel your changes");
return;
}
removeToolTip();
editing = true;

RowEditorEvent ree = new RowEditorEvent(this, rowIndex);
if (!fireEvent(Events.BeforeEdit, ree)) {
-> ensure editing = false state;
return;
}

sven
2 Jun 2009, 3:12 PM
Fixed in SVN.

MrExt
4 Jun 2009, 5:18 AM
Thanks