From: hansonr Date: Tue, 16 Apr 2019 13:39:31 +0000 (-0500) Subject: missing check for JavaScript in client response for String (Java) vs. X-Git-Tag: Develop-2_11_2_0-d20201215~24^2~68^2~158 X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=0b81a1e5d3ce305fe5c56d60c40f28f81ae00ae8 missing check for JavaScript in client response for String (Java) vs. Map (JavaScript) -- since JavaScript has already done the conversion to a Map and needs no further JSON parsing. --- diff --git a/src/jalview/fts/service/pdb/PDBFTSRestClient.java b/src/jalview/fts/service/pdb/PDBFTSRestClient.java index 0e20338..cd3e5c9 100644 --- a/src/jalview/fts/service/pdb/PDBFTSRestClient.java +++ b/src/jalview/fts/service/pdb/PDBFTSRestClient.java @@ -175,7 +175,7 @@ public class PDBFTSRestClient extends FTSRestClient // Get the JSON string from the response object or directly from the // client (JavaScript) - Map jsonObj = (status == 200 + Map jsonObj = (Platform.isJS() && status == 200 ? clientResponse.getEntity(Map.class) : null); String responseString = (jsonObj == null