Commit d4531247 authored by Thomas Huster's avatar Thomas Huster

[17459] fixed remove from favorites

parent 28a26786
Pipeline #12662 passed with stages
in 5 minutes and 6 seconds
......@@ -221,7 +221,9 @@ public class FavoritenComposite extends Composite {
public void run(){
StructuredSelection selection = (StructuredSelection) tv.getSelection();
Favorite fav = (Favorite) selection.getFirstElement();
VerrechenbarFavorites.setFavorite(fav.getObject(), false);
fav.getObject().ifPresent(obj -> {
VerrechenbarFavorites.setFavorite(obj, false);
});
tv.refresh();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment