File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
src/main/java-templates/org/primefaces/component/tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -86,13 +86,15 @@ public boolean isFilterRequest(FacesContext context) {
8686 public static final String FILTER_CONTAINER = "ui-tree-filter-container" ;
8787
8888 public Map <String ,UITreeNode > getTreeNodes () {
89- if (nodes == null ) {
90- nodes = new HashMap <String ,UITreeNode >();
91- for (UIComponent child : getChildren ()) {
92- UITreeNode node = (UITreeNode ) child ;
93- nodes .put (node .getType (), node );
94- }
95- }
89+ if (nodes == null ) {
90+ nodes = new HashMap <String , UITreeNode >();
91+ for (UIComponent child : getChildren ()) {
92+ if (child instanceof UITreeNode ) {
93+ UITreeNode node = (UITreeNode ) child ;
94+ nodes .put (node .getType (), node );
95+ }
96+ }
97+ }
9698
9799 return nodes ;
98100 }
You can’t perform that action at this time.
0 commit comments