If there is an error during precompilation, then exit gracefully rather than causing a null pointer exception.

Review by: scottb (desk check)


git-svn-id: https://google-web-toolkit.googlecode.com/svn/releases/1.6@4233 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/GWTCompiler.java b/dev/core/src/com/google/gwt/dev/GWTCompiler.java
index 546e5ab..3e81a49 100644
--- a/dev/core/src/com/google/gwt/dev/GWTCompiler.java
+++ b/dev/core/src/com/google/gwt/dev/GWTCompiler.java
@@ -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);