When you have already (accidently) deleted all labels in a group making it empty, removing that empty group causes workbench to crash.
Steps:
- Create 3 groups for labeling
- Remove all labels from group 1
- Click on group 1 and press remove group button (because you can't add new label to it anyway. Bug?) -> Group 2 with labels are removed (another bug?)
- Again, Click on the empty group 1 and press remove group button
Workbench crashed.
Conceptually, I think it happens "Remove current group" removes group in focus. Since group 2 was removed and, group 1 don't have any labels, there's no more any "current" group to remove. This could be causing an NPE, while removing internally.