From 2190cb1a1fefe0c0d3e911e5c166d6de2aaa1b31 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Mon, 11 Apr 2022 15:31:35 +0200 Subject: [PATCH] JAL-3878 Allow null value for action name --- src/jalview/ws2/actions/BaseAction.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jalview/ws2/actions/BaseAction.java b/src/jalview/ws2/actions/BaseAction.java index 106937b..6e92f4c 100644 --- a/src/jalview/ws2/actions/BaseAction.java +++ b/src/jalview/ws2/actions/BaseAction.java @@ -23,7 +23,7 @@ public abstract class BaseAction implements ActionI { protected WebService webService; - protected String name; + protected String name = null; protected String tooltip = ""; @@ -116,7 +116,6 @@ public abstract class BaseAction implements ActionI { Objects.requireNonNull(builder.webService); this.webService = builder.webService; - Objects.requireNonNull(builder.name); this.name = builder.name; this.tooltip = builder.tooltip; this.subcategory = builder.subcategory; -- 1.7.10.2