Results 1 to 2 of 2

Thread: NullPointerException while rendering checkbox

  1. #1

    Post NullPointerException while rendering checkbox

    I am trying to add a Checkbox to my EditorTreeGrid, but I get this exception on Tree render :

    java.lang.NullPointerException: null
    at com.extjs.gxt.ui.client.widget.grid.CheckColumnConfig.getCheckState(CheckColumnConfig.java:86)

    The column for which I want the checkbox I have declared as :
    Code:
    CheckColumnConfig size = new CheckColumnConfig("genre", "Genre", 100);
    CellEditor checkBoxEditor = new CellEditor(new CheckBox());  
    size.setEditor(checkBoxEditor);
    configs.add(size);
    In my Model I am setting boolean true or boolean false for this column. The following is an example of how I am doing this :
    Code:
    new Music("Six String Quartets", "Beethoven", true)
    Please help me in getting rid of this exception.
    Thanks in advance

  2. #2
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744

    Default

    debug your code.. and see what attribute really need for dont return a null pointer.. so set it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •