fix build

This commit is contained in:
anhefti 2021-08-11 16:01:58 +02:00
parent 2dea3e2285
commit 107b3beb35

View file

@ -454,8 +454,8 @@ public class ActivitiesPane implements TemplateComposer {
private void handleSelection(final PageContext composerCtx, final Event event) { private void handleSelection(final PageContext composerCtx, final Event event) {
try { try {
final Tree tree = (Tree) event.widget; final Tree tree = (Tree) event.widget;
TreeItem treeItem = (event.item == null && tree.getSelectionCount() == 1) final TreeItem treeItem = (event.item == null && tree.getSelectionCount() == 1)
? treeItem = tree.getSelection()[0] ? tree.getSelection()[0]
: (TreeItem) event.item; : (TreeItem) event.item;
if (treeItem.getItemCount() > 0 && !treeItem.getExpanded()) { if (treeItem.getItemCount() > 0 && !treeItem.getExpanded()) {