npe checks

This commit is contained in:
Eugene Zhuravlev
2012-04-02 21:45:30 +02:00
parent 0db813abaf
commit 4da01b7bab
@@ -380,11 +380,9 @@ public class IncProjectBuilder {
private static void createClasspathIndex(final ModuleChunk chunk, boolean forTests) {
final Set<File> outputPaths = new LinkedHashSet<File>();
for (Module module : chunk.getModules()) {
if (forTests) {
outputPaths.add(new File(module.getTestOutputPath()));
}
else {
outputPaths.add(new File(module.getOutputPath()));
final String out = forTests? module.getTestOutputPath() : module.getOutputPath();
if (out != null) {
outputPaths.add(new File(out));
}
}
for (File outputRoot : outputPaths) {