From 3d244d1c1d6209ba797d0cd502892836b9f80c3e Mon Sep 17 00:00:00 2001 From: kpouer Date: Tue, 12 Aug 2003 09:46:49 +0000 Subject: [PATCH] a small bugfix for list(,$var) case --- .../internal/compiler/ast/ListExpression.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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()); -- 1.7.1