JAL-629 Catch a NPE, fix a test
authorBen Soares <b.soares@dundee.ac.uk>
Wed, 10 May 2023 12:31:16 +0000 (13:31 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Wed, 10 May 2023 12:31:16 +0000 (13:31 +0100)
src/jalview/bin/Console.java

index ab9ff97..a382ac7 100644 (file)
@@ -242,7 +242,8 @@ public class Console
 
       if (!Platform.isJS())
       {
-        if (!Jalview.getInstance().quiet())
+        if (Jalview.getInstance() == null || (Jalview.getInstance() != null
+                && !Jalview.getInstance().quiet()))
         {
           System.err.println(
                   "Setting initial log level to " + logLevel.name());