mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SSR: fix NPE
GitOrigin-RevId: af14c0f5940e629dfc8efb34eeba704f18374387
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d27a9b22b8
commit
4656d2b4db
+5
-2
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.structuralsearch.plugin.ui;
|
||||
|
||||
import com.intellij.application.options.ModulesComboBox;
|
||||
@@ -182,7 +182,10 @@ public class ScopePanel extends JPanel {
|
||||
}
|
||||
if (!found) {
|
||||
myScopesComboBox.selectItem("Selected Files"); // this scope name is not available in a properties file
|
||||
myDirectoryComboBox.setDirectory(files[0].getParent());
|
||||
final VirtualFile directory = files[0].getParent();
|
||||
if (directory != null) {
|
||||
myDirectoryComboBox.setDirectory(directory);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user