From 458c558a63becbea3bb91ad982e215926ef1ec31 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Wed, 10 May 2023 13:31:16 +0100 Subject: [PATCH] JAL-629 Catch a NPE, fix a test --- src/jalview/bin/Console.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); -- 1.7.10.2