List extraction fixed.
[scilab.git] / scilab / modules / ast / includes / types / list.hxx
index 75d148f..e17c06f 100644 (file)
@@ -75,6 +75,12 @@ public :
         else
         {
             InternalType * _out = extract(&in);
+            if (_out == NULL)
+            {
+                // invalid index
+                return false;
+            }
+
             List* pList = _out->getAs<types::List>();
             for (int i = 0; i < pList->getSize(); i++)
             {