managememnt of empty command 38/16338/3
Cedric Delamarre [Wed, 8 Apr 2015 11:55:41 +0000 (13:55 +0200)]
loadXcosLibs(); tree_show(scicos_diagram())

then double click on tree, nothing must occur.

Change-Id: I754e5d4741376284c83340851f687a3dd6e4e775

scilab/modules/core/src/cpp/InitScilab.cpp

index dd8a675..74f6321 100644 (file)
@@ -495,6 +495,12 @@ void* scilabReadAndExecCommand(void* param)
             continue;
         }
 
+        // empty command
+        if (command == NULL || strlen(command) == 0)
+        {
+            continue;
+        }
+
         _pSEI->isInterruptible = iInterruptibleCmd;
         _pSEI->isPrioritary = iPrioritaryCmd;
         _pSEI->isConsoleCommand = iConsoleCmd;