build fix
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 25 May 2015 15:04:22 +0000 (16:04 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 25 May 2015 15:04:22 +0000 (16:04 +0100)
src/jalview/io/JSONFile.java

index 28b8ed2..8d3cadd 100644 (file)
@@ -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<SequenceFeaturesPojo> sequenceFeatureToJsonPojo(