PDA

View Full Version : Nullpointer exception in TreeGrid.isExpanded(M model)



ionut.rachita
16 Mar 2011, 1:11 PM
TreeGrid.isExpanded(M model) is not protected from NullPointerException if it is called with a model that doesn't exists in the grid.


public boolean isExpanded(M model) {
TreeNode node = findNode(model);
return node.isExpanded();
}

If node is null then we have an exception.

sven
16 Mar 2011, 9:38 PM
Thanks for this information. This is a known issue and will be fixed within one of the next releases.