# HG changeset patch # User Bernhard Urban # Date 1390245425 -3600 # Node ID 34b07168b5053db24b14b5bf6b11ad13d81f2744 # Parent a65486301b313e59bdfb5a579f1e1e44e1fb24a0 IGV: fix nulling out reference in rootnode diff -r a65486301b31 -r 34b07168b505 src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/BytecodeViewTopComponent.java --- 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 {