JAL-3878 Allow null value for action name
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Mon, 11 Apr 2022 13:31:35 +0000 (15:31 +0200)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Mon, 11 Apr 2022 13:31:35 +0000 (15:31 +0200)
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;