Coverity #1321202 fixed
[scilab.git] / scilab / modules / ast / src / cpp / types / types_tools.cpp
index b88722f..ce6458b 100644 (file)
@@ -510,6 +510,11 @@ int checkIndexesArguments(InternalType* _pRef, typed_list* _pArgsIn, typed_list*
         else if (pIT->isString())
         {
             String* pStr = pIT->getAs<String>();
+            if(!_pRef)
+            {
+                bUndefine = true;
+                continue;
+            }
             if (_pRef->isStruct())
             {
                 Struct* pStruct = _pRef->getAs<Struct>();