From 91c77a3db54eb4a270b03bcf9a6d97255c1fce35 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Mon, 25 May 2015 16:04:22 +0100 Subject: [PATCH] build fix --- src/jalview/io/JSONFile.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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( -- 1.7.10.2