You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought that I wanted to manually cancel selected state in MaterialTree,
I attempted to use MaterialTree#deselectSelectedItem() (added from #163)
When execute, NullPointer has occurred.
Reason:
By SelectionEvent (selectedItem = null) fired in the deselectSelectedItem method,
it occurs in SelectionHandler that is set by MaterialTree itself.
Need a null check in SelectionHandler?
for (Widget item : getChildren()) {
if (item instanceof MaterialTreeItem) {
clearSelectedStyles((MaterialTreeItem) item);
}
}
MaterialTreeItem treeItem = event.getSelectedItem();
// Add Check whether tree has selected item
if (treeItem != null) {
treeItem.addStyleName(AddinsCssName.SELECTED);
}
setSelectedItem(treeItem);
The text was updated successfully, but these errors were encountered:
I use MaterialTree.
I thought that I wanted to manually cancel selected state in MaterialTree,
I attempted to use
MaterialTree#deselectSelectedItem()
(added from #163)When execute, NullPointer has occurred.
Reason:
By SelectionEvent (selectedItem = null) fired in the
deselectSelectedItem
method,it occurs in SelectionHandler that is set by MaterialTree itself.
Need a null check in SelectionHandler?
The text was updated successfully, but these errors were encountered: