From 023b1d67db23f1b19eaafe093cff76c2a80680b9 Mon Sep 17 00:00:00 2001 From: mka Date: Tue, 4 Dec 2012 09:25:27 +0000 Subject: [PATCH] Updated --- .../salome/SimanSalomeServiceImpl.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) 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); -- 2.39.2