Reviewers: conroy,


Please review this at http://gwt-code-reviews.appspot.com/910802/show

Affected files:
  M dev/core/src/com/google/gwt/dev/javac/MethodArgNamesLookup.java


Index: dev/core/src/com/google/gwt/dev/javac/MethodArgNamesLookup.java
diff --git a/dev/core/src/com/google/gwt/dev/javac/MethodArgNamesLookup.java b/dev/core/src/com/google/gwt/dev/javac/MethodArgNamesLookup.java index aba73370cf65af24d6d4164c9f9cbb7d78833191..b4bb5a317f09df150774831cd755014f1fdb347a 100644
--- a/dev/core/src/com/google/gwt/dev/javac/MethodArgNamesLookup.java
+++ b/dev/core/src/com/google/gwt/dev/javac/MethodArgNamesLookup.java
@@ -38,15 +38,15 @@ public class MethodArgNamesLookup {
   }

   /**
-   * Prevent further modification to this object.  Calls to
-   * {...@link #store(String, AbstractMethodDeclaration)} or
+   * Prevent further modification to this object. Calls to
+   * {...@link #store(String, AbstractMethodDeclaration)} or
* {...@link #mergeFrom(MethodArgNamesLookup)} on this object will fail after
    * this method is called.
    */
   public void freeze() {
     methodArgs = Maps.normalizeUnmodifiable(methodArgs);
   }
-
+
   /**
    * Lookup the argument names for a given method.
    *
@@ -80,8 +80,11 @@ public class MethodArgNamesLookup {
    * @param enclosingType fully qualified binary name of the enclosing type
    * @param method JDT method
    */
-  public void store(String enclosingType,
-      AbstractMethodDeclaration method) {
+ public void store(String enclosingType, AbstractMethodDeclaration method) {
+    if (method.binding == null) {
+      // Compile problem with this method, skip
+      return;
+    }
     int n = method.arguments.length;
     String[] argNames = new String[n];
     for (int i = 0; i < n; ++i) {


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to