Build fix: a messageSend can have a null binding if the target compilation unit has a problem.


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2328 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/jdt/TypeRefVisitor.java b/dev/core/src/com/google/gwt/dev/jdt/TypeRefVisitor.java
index 053426b..df9510e 100644
--- a/dev/core/src/com/google/gwt/dev/jdt/TypeRefVisitor.java
+++ b/dev/core/src/com/google/gwt/dev/jdt/TypeRefVisitor.java
@@ -66,7 +66,7 @@
 
   @Override
   public void endVisit(MessageSend messageSend, BlockScope scope) {
-    if (messageSend.binding.isStatic()) {
+    if (messageSend.binding != null && messageSend.binding.isStatic()) {
       maybeDispatch(scope, messageSend, messageSend.actualReceiverType);
     }
   }