From f6d94f44ef8adcc960ac0cf419928bdf2198fcc0 Mon Sep 17 00:00:00 2001 From: BobHanson Date: Sat, 21 Mar 2020 14:04:29 -0500 Subject: [PATCH] Platform fix, missing check for jsutil == null --- src/jalview/util/Platform.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java index 3cba2dc..8498e7f 100644 --- a/src/jalview/util/Platform.java +++ b/src/jalview/util/Platform.java @@ -597,7 +597,6 @@ public class Platform @SuppressWarnings("unused") public static void getURLCommandArguments() { - if (!isJS()) { return; @@ -628,12 +627,20 @@ public class Platform public static void ensureJmol() { + if (!isJS()) + { + return; + } jsutil.loadResourceIfClassUnknown("core/core_jvjmol.z.js", "org.jmol.viewer.Viewer"); } public static void ensureRegex() { + if (!isJS()) + { + return; + } jsutil.loadResourceIfClassUnknown("core/core_stevesoft.z.js", "com.stevesoft.pat.Regex"); } -- 1.7.10.2