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.
public boolean isExpanded(M model) {
TreeNode node = findNode(model);
return node.isExpanded();
}
If node is null then we have an exception.