From: tcofoegbu Date: Mon, 25 May 2015 15:04:22 +0000 (+0100) Subject: build fix X-Git-Tag: Release_2_10_0~659 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=91c77a3db54eb4a270b03bcf9a6d97255c1fce35;hp=864c9471858b6995373bea47c10810a1eab1d64b;p=jalview.git build fix --- diff --git a/src/jalview/io/JSONFile.java b/src/jalview/io/JSONFile.java index 28b8ed2..8d3cadd 100644 --- a/src/jalview/io/JSONFile.java +++ b/src/jalview/io/JSONFile.java @@ -88,6 +88,7 @@ public class JSONFile extends AlignFile @Override public String print() { + String jsonOutput = null; try { if (getJsonExportSettings() == null) @@ -179,14 +180,14 @@ public class JSONFile extends AlignFile } com.json.JSONObject generatedJSon = new com.json.JSONObject( jsonAlignmentPojo); - String jsonOutput = generatedJSon.toString(); + jsonOutput = generatedJSon.toString(); return jsonOutput.replaceAll("xstart", "xStart").replaceAll("xend", "xEnd"); } catch (Exception e) { e.printStackTrace(); - throw e; } + return jsonOutput; } public static List sequenceFeatureToJsonPojo(