From c700a0ef78467620d38bbeec43bd3b31b08ec257 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 2 Oct 2020 11:44:26 +0100 Subject: [PATCH] JAL-3762 check for !args || args=="" before overwriting --- src/jalview/util/Platform.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java index efec5f7..bb0c1b6 100644 --- a/src/jalview/util/Platform.java +++ b/src/jalview/util/Platform.java @@ -611,7 +611,7 @@ public class Platform * decodeURI((document.location.href.replace("&","?").split("?j2s")[0] * + "?").split("?")[1].split("#")[0]); a && (System.out.println("URL arguments detected were "+a)) && * (J2S.thisApplet.__Info.urlargs = a.split(" ")); - * (!!J2S.thisApplet.__Info.args || J2S.thisApplet.__Info.args == "" || J2S.thisApplet.__Info.args == "??") && (J2S.thisApplet.__Info.args = a) && (System.out.println("URL arguments were passed to J2S main.")); + * (!J2S.thisApplet.__Info.args || J2S.thisApplet.__Info.args == "" || J2S.thisApplet.__Info.args == "??") && (J2S.thisApplet.__Info.args = a) && (System.out.println("URL arguments were passed to J2S main.")); */ } catch (Throwable t) { -- 1.7.10.2