Author: [EMAIL PROTECTED]
Date: Tue Dec 2 15:22:57 2008
New Revision: 4233
Modified:
releases/1.6/dev/core/src/com/google/gwt/dev/GWTCompiler.java
Log:
If there is an error during precompilation, then exit gracefully rather
than causing a null pointer exception.
Review by: scottb (desk check)
Modified: releases/1.6/dev/core/src/com/google/gwt/dev/GWTCompiler.java
==============================================================================
--- releases/1.6/dev/core/src/com/google/gwt/dev/GWTCompiler.java
(original)
+++ releases/1.6/dev/core/src/com/google/gwt/dev/GWTCompiler.java Tue Dec
2 15:22:57 2008
@@ -152,6 +152,10 @@
Precompilation precompilation = Precompile.precompile(logger,
options,
module, options.getGenDir(), options.getCompilerWorkDir());
+ if (precompilation == null) {
+ return false;
+ }
+
Permutation[] allPerms = precompilation.getPermutations();
File[] resultFiles = CompilePerms.makeResultFiles(
options.getCompilerWorkDir(), allPerms);
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---