fix ast message when insert in handle 31/16531/5
Anais AUBERT [Fri, 29 May 2015 16:01:18 +0000 (18:01 +0200)]
Tests:
test_run("graphics","light")
test_run("graphics","bug_8196")

Change-Id: Ieec70092386225be565decfeacce6102b3730539

scilab/modules/ast/src/cpp/ast/visitor_common.cpp

index ba6be72..55eed3c 100644 (file)
@@ -2346,6 +2346,10 @@ InternalType* insertionCall(const ast::Exp& e, typed_list* _pArgs, InternalType*
                     {
                         pRet = _pVar;
                     }
+                    else
+                    {
+                        throw ast::ScilabMessage();
+                    }
                 }
             }
             else