JAL-3066 Fix NullPointerException thrown when showing HMMER run dialog
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 4 Mar 2021 13:59:48 +0000 (14:59 +0100)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 4 Mar 2021 13:59:48 +0000 (14:59 +0100)
src/jalview/gui/WsJobParameters.java

index 88819e4..c1a925d 100644 (file)
@@ -218,12 +218,8 @@ public class WsJobParameters extends JPanel implements ItemListener,
     if (service != null)
     {
       frame.setTitle(MessageManager.formatMessage("label.edit_params_for",
-              new String[]
-      { service.getActionText() }));
+              new String[] { service.getActionText() }));
     }
-    frame.setTitle(MessageManager.formatMessage("label.edit_params_for",
-            new String[]
-            { service.getActionText() }));
     Rectangle deskr = Desktop.getInstance().getBounds();
     Dimension pref = this.getPreferredSize();
     frame.setBounds(