From: kpouer Date: Tue, 12 Aug 2003 09:46:49 +0000 (+0000) Subject: a small bugfix for list(,$var) case X-Git-Url: http://git.phpeclipse.com a small bugfix for list(,$var) case --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ListExpression.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ListExpression.java index 9b40ee2..a167d1a 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ListExpression.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ListExpression.java @@ -65,7 +65,9 @@ public class ListExpression extends Expression { public List getModifiedVariable() { final ArrayList list = new ArrayList(); for (int i = 0; i < vars.length; i++) { - list.addAll(vars[i].getUsedVariable()); + if (vars[i] != null) { + list.addAll(vars[i].getUsedVariable()); + } } if (expression != null) { list.addAll(expression.getModifiedVariable());