From: axelcl Date: Wed, 6 Apr 2005 18:29:29 +0000 (+0000) Subject: Avoid NullPointerException X-Git-Url: http://git.phpeclipse.com?hp=a50727aa3530206ab0a98158fa6610ba672211fa Avoid NullPointerException --- diff --git a/archive/net.sourceforge.phpeclipse.js.core/src/net/sourceforge/phpeclipse/js/core/parser/JSParser.java b/archive/net.sourceforge.phpeclipse.js.core/src/net/sourceforge/phpeclipse/js/core/parser/JSParser.java index 7796b4a..28ea672 100644 --- a/archive/net.sourceforge.phpeclipse.js.core/src/net/sourceforge/phpeclipse/js/core/parser/JSParser.java +++ b/archive/net.sourceforge.phpeclipse.js.core/src/net/sourceforge/phpeclipse/js/core/parser/JSParser.java @@ -9,6 +9,9 @@ * Modifications history *======================================================================== * $Log: not supported by cvs2svn $ + * Revision 1.1 2004/09/02 18:14:38 jsurfer + * intial source from ttp://www.sf.net/projects/wdte + * * Revision 1.1 2004/02/26 02:25:42 agfitzp * renamed packages to match xml & css * @@ -392,7 +395,9 @@ public class JSParser if (expression.equals("=")) { JSGlobalVariableElement aVariable = addGlobalVariable(variableName, varOffset); - checkForSpecialGlobalTypes(aVariable); + if (aVariable!=null) { + checkForSpecialGlobalTypes(aVariable); + } } } }