-
19 Dec 2011 11:33 AM #1
Store.isCurrentValue() NullPointerException
Store.isCurrentValue() NullPointerException
There is a bug in Store.java (GXT 3.0-beta1)
If previous value was null and new value is not null, then function throws NullPointerException.PHP Code:public boolean isCurrentValue(M model) {
return (access.getValue(model) == null && value == null) || access.getValue(model).equals(value);
}
Because access.getValue(model) returns null reference.
I'm using GridRowEditing for editing my grid.
WorkaroundPHP Code:final GridEditing<AuthorProxy> editing = new GridRowEditing<AuthorProxy>(grid);
editing.addEditor(cc1, new TextField());
Set fields (if possible) to non-null values before inserting to store.
PHP Code:final AuthorProxy authorMutable = authorRequest.edit(author);
authorMutable.setNameFirst("");
authorMutable.setNameLast("");
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote