PDA

View Full Version : [FIXED] npe from Table.setSelectionModel



jayj
23 Apr 2008, 7:54 AM
I am getting the following exception from Table.setSelectionModel:
java.lang.NullPointerException
at com.extjs.gxt.ui.client.widget.table.Table.setSelectionModel(Table.java:509)

The code in setSelectionModel should be changed from:
public void setSelectionModel(RowSelectionModel sm) {
if (sm != null) {
this.sm.unbind(this);

to:

public void setSelectionModel(RowSelectionModel sm) {
if (this.sm != null) {
this.sm.unbind(this);

darrellmeyer
28 Apr 2008, 8:04 PM
Fixed in SVN.