Mercurial > hg > graal-compiler
changeset 13718:34b07168b505
IGV: fix nulling out reference in rootnode
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Mon, 20 Jan 2014 20:17:05 +0100 |
parents | a65486301b31 |
children | 8e6b47ee2f25 |
files | src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/BytecodeViewTopComponent.java |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/BytecodeViewTopComponent.java Mon Jan 20 22:30:19 2014 +0100 +++ b/src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/BytecodeViewTopComponent.java Mon Jan 20 20:17:05 2014 +0100 @@ -171,22 +171,21 @@ @Override public void resultChanged(LookupEvent lookupEvent) { final InputGraphProvider p = LookupHistory.getLast(InputGraphProvider.class);//)Utilities.actionsGlobalContext().lookup(InputGraphProvider.class); - if (p != null) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { + if (p != null) { InputGraph graph = p.getGraph(); if (graph != null) { Group g = graph.getGroup(); rootNode.update(graph, g.getMethod()); - } else { - rootNode.update(null, null); + return; } } + rootNode.update(null, null); + } }); - } else { - rootNode.update(null, null); - } + } final static class ResolvableHelper implements Serializable {