Insubstantial/insubstantial

Unable to add ribbon task to ribbon once removed

Opened this issue · 1 comments

Removing a task from a ribbon does not null the ribbon reference in the task. If you try to add the task to the original ribbon or a different one an exception is thrown:

java.lang.IllegalStateException: The task already belongs to another ribbon

Since the setRibbon() method in RibbonTask is package protected the problem can not easily be worked around.