Skip to content

Commit 6e8f038

Browse files
8294567: IGV: IllegalStateException in search
Reviewed-by: rcastanedalo, chagedorn, kvn
1 parent bc668b9 commit 6e8f038

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/IdealGraphVisualizer/View/src/main/java/com/sun/hotspot/igv/view/EditorInputGraphProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public EditorInputGraphProvider(EditorTopComponent editor) {
4949

5050
@Override
5151
public InputGraph getGraph() {
52-
if (editor != null && editor.isOpened()) {
52+
if (editor != null) {
5353
return editor.getModel().getGraphToView();
5454
} else {
5555
return null;
@@ -58,14 +58,14 @@ public InputGraph getGraph() {
5858

5959
@Override
6060
public void setSelectedNodes(Set<InputNode> nodes) {
61-
if (editor != null && editor.isOpened()) {
61+
if (editor != null) {
6262
editor.setSelectedNodes(nodes);
6363
}
6464
}
6565

6666
@Override
6767
public Iterable<InputGraph> searchBackward() {
68-
if (editor != null && editor.isOpened()) {
68+
if (editor != null) {
6969
return editor.getModel().getGraphsBackward();
7070
} else {
7171
return null;
@@ -74,7 +74,7 @@ public Iterable<InputGraph> searchBackward() {
7474

7575
@Override
7676
public Iterable<InputGraph> searchForward() {
77-
if (editor != null && editor.isOpened()) {
77+
if (editor != null) {
7878
return editor.getModel().getGraphsForward();
7979
} else {
8080
return null;

0 commit comments

Comments
 (0)