Author: [email protected]
Date: Thu May 14 13:20:03 2009
New Revision: 5379

Modified:
     
trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardLinkerContext.java

Log:
Check for null primary linker, which is a bonehead error condition but  
requires a graceful message.

Issues: 3536
Review by: scottb


Modified:  
trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardLinkerContext.java
==============================================================================
---  
trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardLinkerContext.java
        
(original)
+++  
trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardLinkerContext.java
        
Thu May 14 13:20:03 2009
@@ -171,7 +171,13 @@
      }

      // Get the primary linker.
-    sortedLinkers.add(module.getActivePrimaryLinker());
+    Class<? extends Linker> primary = module.getActivePrimaryLinker();
+    if (primary == null) {
+      logger.log(logger.ERROR, "Primary linker is null.  Does your  
module " +
+          "inherit from com.google.gwt.core.Core or  
com.google.gwt.user.User?");
+    } else {
+      sortedLinkers.add(module.getActivePrimaryLinker());
+    }

      // Get all the post-linkers IN REVERSE ORDER.
      {

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

Reply via email to