JAL-3878 Allow null value for action name
[jalview.git] / src / jalview / ws2 / actions / BaseAction.java
index 106937b..6e92f4c 100644 (file)
@@ -23,7 +23,7 @@ public abstract class BaseAction<R> implements ActionI<R>
   {
     protected WebService<A> webService;
 
-    protected String name;
+    protected String name = null;
 
     protected String tooltip = "";
 
@@ -116,7 +116,6 @@ public abstract class BaseAction<R> implements ActionI<R>
   {
     Objects.requireNonNull(builder.webService);
     this.webService = builder.webService;
-    Objects.requireNonNull(builder.name);
     this.name = builder.name;
     this.tooltip = builder.tooltip;
     this.subcategory = builder.subcategory;