Avoid NullPointerException
authoraxelcl <axelcl>
Wed, 6 Apr 2005 18:29:29 +0000 (18:29 +0000)
committeraxelcl <axelcl>
Wed, 6 Apr 2005 18:29:29 +0000 (18:29 +0000)
archive/net.sourceforge.phpeclipse.js.core/src/net/sourceforge/phpeclipse/js/core/parser/JSParser.java

index 7796b4a..28ea672 100644 (file)
@@ -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);
+                                               }
                                        }
                                }
                        }