]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Updated
authormka <mka@opencascade.com>
Tue, 4 Dec 2012 09:25:27 +0000 (09:25 +0000)
committermka <mka@opencascade.com>
Tue, 4 Dec 2012 09:25:27 +0000 (09:25 +0000)
Workspace/Siman-WS/src/org/splat/ws_server/service/salome/SimanSalomeServiceImpl.java

index d83620ba4bf37751670a9f7c0f8009626c628a6b..d3c58bdb272f0dad913d7fb4a2863c26dbbeb07b 100644 (file)
@@ -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<StepDTO> listSteps = new ArrayList<StepDTO>(numberStepMap.values());
-                       LOG.debug("MKA List of steps: ");
-                       LOG.debug(listSteps.get(0).toString());
                
                        try {
                                _scenarioService.checkin(ScenarioId, userId, listSteps);