From: mka Date: Tue, 4 Dec 2012 09:25:27 +0000 (+0000) Subject: Updated X-Git-Tag: Root_Delivery1_2012_12_06~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=023b1d67db23f1b19eaafe093cff76c2a80680b9;p=tools%2Fsiman.git Updated --- diff --git a/Workspace/Siman-WS/src/org/splat/ws_server/service/salome/SimanSalomeServiceImpl.java b/Workspace/Siman-WS/src/org/splat/ws_server/service/salome/SimanSalomeServiceImpl.java index d83620b..d3c58bd 100644 --- a/Workspace/Siman-WS/src/org/splat/ws_server/service/salome/SimanSalomeServiceImpl.java +++ b/Workspace/Siman-WS/src/org/splat/ws_server/service/salome/SimanSalomeServiceImpl.java @@ -225,17 +225,19 @@ public class SimanSalomeServiceImpl implements SimanSalomeService { e.printStackTrace(); } - try { + if (dataHandler != null) { + try { + + FileOutputStream outputStream = new FileOutputStream(vaultURLFile); + dataHandler.writeTo(outputStream); - FileOutputStream outputStream = new FileOutputStream(vaultURLFile); - dataHandler.writeTo(outputStream); - - outputStream.flush(); - outputStream.close(); - - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + outputStream.flush(); + outputStream.close(); + + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } } return vaultURLFile.getPath(); @@ -302,8 +304,6 @@ public class SimanSalomeServiceImpl implements SimanSalomeService { input.close(); List listSteps = new ArrayList(numberStepMap.values()); - LOG.debug("MKA List of steps: "); - LOG.debug(listSteps.get(0).toString()); try { _scenarioService.checkin(ScenarioId, userId, listSteps);