From: BobHanson Date: Sat, 21 Mar 2020 19:04:29 +0000 (-0500) Subject: Platform fix, missing check for jsutil == null X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f6d94f44ef8adcc960ac0cf419928bdf2198fcc0;p=jalview.git Platform fix, missing check for jsutil == null --- 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"); }