IDEA-59316: New Module wizard/Facets configuration page: path for downloaded library jars is shown incorrectly

This commit is contained in:
nik
2010-10-04 11:01:37 +04:00
parent f64ccab78e
commit 8d0c09ebf9
@@ -254,7 +254,7 @@ public class LibraryOptionsPanel {
final String downloadPath = mySettings.getDirectoryForDownloadedLibrariesPath();
final String basePath = mySettings.getBaseDirectoryForDownloadedFiles();
String path;
if (FileUtil.startsWith(downloadPath, basePath)) {
if (!StringUtil.isEmpty(basePath) && FileUtil.startsWith(downloadPath, basePath)) {
path = FileUtil.getRelativePath(basePath, downloadPath, File.separatorChar);
}
else {