1. #1
    Sencha User
    Join Date
    Mar 2009
    Posts
    39
    Vote Rating
    0
    ionut.rachita is on a distinguished road

      0  

    Default Nullpointer exception in TreeGrid.isExpanded(M model)

    Nullpointer exception in TreeGrid.isExpanded(M model)


    TreeGrid.isExpanded(M model) is not protected from NullPointerException if it is called with a model that doesn't exists in the grid.

    Code:
    public boolean isExpanded(M model) {
        TreeNode node = findNode(model);
        return node.isExpanded();
      }
    If node is null then we have an exception.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,691
    Vote Rating
    107
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    Thanks for this information. This is a known issue and will be fixed within one of the next releases.

Similar Threads

  1. Exception / Error Handling for Model?
    By wizkid in forum Ext: Discussion
    Replies: 1
    Last Post: 8 Mar 2011, 5:51 AM
  2. [FNR] Chart: Bind empty store giving a nullpointer exception
    By MartinElkjaer in forum Ext GWT: Bugs (2.x)
    Replies: 21
    Last Post: 15 Jul 2010, 6:53 AM
  3. Replies: 2
    Last Post: 10 Dec 2009, 9:23 AM

Tags for this Thread