Skip to content

Commit 06ef2aa

Browse files
jisedlacthurka
authored andcommitted
OQL console - prevent NPE from UI on GTK
1 parent 588bd6f commit 06ef2aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
build.xml.data.CRC32=a527e266
1+
build.xml.data.CRC32=226f27cb
22
build.xml.script.CRC32=018997e7
33
build.xml.stylesheet.CRC32=[email protected]
44
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
55
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6-
nbproject/build-impl.xml.data.CRC32=a527e266
6+
nbproject/build-impl.xml.data.CRC32=226f27cb
77
nbproject/build-impl.xml.script.CRC32=98bf6af8
88
nbproject/build-impl.xml.stylesheet.CRC32=[email protected]

visualvm/heapviewer/src/com/sun/tools/visualvm/heapviewer/oql/OQLConsoleView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,9 @@ public void queryFinished(final String result) {
474474
SwingUtilities.invokeLater(new Runnable() {
475475
public void run() {
476476
updateUIState();
477-
progressBar.setModel(null);
478477
progressToolbar.getComponent().setVisible(false);
479478
resultsToolbar.getComponent().setVisible(true);
479+
progressBar.setModel(new DefaultBoundedRangeModel(0, 0, 0, 0));
480480
objectsView.reloadView();
481481

482482
if (result != null) {

0 commit comments

Comments
 (0)