check null moduleName for PreCompileStrategy; this can happen when there are pure Java GWTTestCases. git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7592 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/junit/CompileStrategy.java b/user/src/com/google/gwt/junit/CompileStrategy.java index e1db74d..48b2518 100644 --- a/user/src/com/google/gwt/junit/CompileStrategy.java +++ b/user/src/com/google/gwt/junit/CompileStrategy.java
@@ -302,10 +302,12 @@ for (String moduleName : GWTTestCase.getAllTestModuleNames()) { TestModuleInfo moduleInfo = GWTTestCase.getTestsForModule(moduleName); String syntheticModuleName = moduleInfo.getSyntheticModuleName(); - ModuleDef moduleDef = maybeCompileModuleImpl( - moduleInfo.getModuleName(), syntheticModuleName, - moduleInfo.getStrategy(), batchingStrategy, treeLogger); - preCompiledModuleDefs.put(syntheticModuleName, moduleDef); + if (syntheticModuleName != null) { + ModuleDef moduleDef = maybeCompileModuleImpl( + moduleInfo.getModuleName(), syntheticModuleName, + moduleInfo.getStrategy(), batchingStrategy, treeLogger); + preCompiledModuleDefs.put(syntheticModuleName, moduleDef); + } } } }