NPE (17431)

This commit is contained in:
anna
2009-12-04 13:28:01 +03:00
parent 5ef21f2fc0
commit 5ece42fa68
@@ -69,7 +69,10 @@ public class EclipseClasspathWriter {
outputPath = getRelativePath(output.getUrl());
}
else if (output == null) {
outputPath = getRelativePath(myModel.getModuleExtension(CompilerModuleExtension.class).getCompilerOutputUrl());
final String url = myModel.getModuleExtension(CompilerModuleExtension.class).getCompilerOutputUrl();
if (url != null) {
outputPath = getRelativePath(url);
}
}
}
final Element orderEntry = addOrderEntry(EclipseXml.OUTPUT_KIND, outputPath, classpathElement, oldRoot);