Coverity #1321202 fixed 97/18297/3
Dhruv Khattar [Fri, 24 Jun 2016 07:51:27 +0000 (12:51 +0530)]
Change-Id: I28dbbd7a119b930d3958ece8fe404a21ebac442b

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>();