Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    19
    Vote Rating
    0
    chrismcnally is on a distinguished road

      0  

    Default [FIXED] NPE when rendering grid checkbox with Boolean Null in ModelData

    [FIXED] NPE when rendering grid checkbox with Boolean Null in ModelData


    I am adding a new row in my editor grid which has null values for most of the model data. One of them is a Boolean, which I am rendering using a checkbox. I get a null Pointer exception here:

    Class CheckColumnConfig

    protected String getCheckState(ModelData model, String property, int rowIndex,
    int colIndex) {
    Boolean v = model.get(property);
    String on = v ? "-on" : "";
    return on;
    }

    Can this be changed so that null yields an unchecked box?

    Thanks

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Fixed in SVN.

Thread Participants: 1