projects
/
scilab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Coverity #1321202 fixed
[scilab.git]
/
scilab
/
modules
/
ast
/
src
/
cpp
/
types
/
types_tools.cpp
diff --git
a/scilab/modules/ast/src/cpp/types/types_tools.cpp
b/scilab/modules/ast/src/cpp/types/types_tools.cpp
index
b88722f
..
ce6458b
100644
(file)
--- a/
scilab/modules/ast/src/cpp/types/types_tools.cpp
+++ b/
scilab/modules/ast/src/cpp/types/types_tools.cpp
@@
-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>();