missing check for JavaScript in client response for String (Java) vs.
[jalview.git] / src / jalview / fts / service / pdb / PDBFTSRestClient.java
index 0e20338..cd3e5c9 100644 (file)
@@ -175,7 +175,7 @@ public class PDBFTSRestClient extends FTSRestClient
 
       // Get the JSON string from the response object or directly from the
       // client (JavaScript)
-      Map<String, Object> jsonObj = (status == 200
+      Map<String, Object> jsonObj = (Platform.isJS() && status == 200
               ? clientResponse.getEntity(Map.class)
               : null);
       String responseString = (jsonObj == null