From: Ben Soares Date: Wed, 10 May 2023 12:31:16 +0000 (+0100) Subject: JAL-629 Catch a NPE, fix a test X-Git-Tag: Release_2_11_4_0~339 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=458c558a63becbea3bb91ad982e215926ef1ec31;p=jalview.git JAL-629 Catch a NPE, fix a test --- diff --git a/src/jalview/bin/Console.java b/src/jalview/bin/Console.java index ab9ff97..a382ac7 100644 --- a/src/jalview/bin/Console.java +++ b/src/jalview/bin/Console.java @@ -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());