mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE
This commit is contained in:
+7
-5
@@ -540,12 +540,14 @@ public class SingleInspectionProfilePanel extends JPanel {
|
||||
|
||||
public void treeExpanded(TreeExpansionEvent event) {
|
||||
InspectionProfileImpl selected = mySelectedProfile;
|
||||
String nodeTitle = getExpandedString(event.getPath());
|
||||
final InspectionProfileImpl parentProfile = (InspectionProfileImpl)selected.getParentProfile();
|
||||
if (parentProfile != null) {
|
||||
parentProfile.getExpandedNodes().expandNode(nodeTitle);
|
||||
if (selected != null) {
|
||||
String nodeTitle = getExpandedString(event.getPath());
|
||||
final InspectionProfileImpl parentProfile = (InspectionProfileImpl)selected.getParentProfile();
|
||||
if (parentProfile != null) {
|
||||
parentProfile.getExpandedNodes().expandNode(nodeTitle);
|
||||
}
|
||||
selected.getExpandedNodes().expandNode(nodeTitle);
|
||||
}
|
||||
selected.getExpandedNodes().expandNode(nodeTitle);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user